Skip to content

Commit 7216799

Browse files
committed
style(test): clang-format (void) cast in ConfigureMultimodalTask EXPECT_THROW
The two configure_multimodal_task_impl EXPECT_THROW tests merged from PR #249 used "(void) configure_..." with a space after the cast, which the pinned clang-format 22.1.5 rejects (wants "(void)configure_..."), reddening the C++ format CI check. Reformat with the pinned version; no other files drift. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WfCPxFtiVbUD7Y3C9drQEz
1 parent 19056b6 commit 7216799

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/cpp/test_jni_helpers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,12 @@ TEST(ConfigureMultimodalTask, MovesPromptAndMediaToCliTask) {
608608

609609
TEST(ConfigureMultimodalTask, MediaWithoutProjectorThrows) {
610610
server_task task(SERVER_TASK_TYPE_COMPLETION);
611-
EXPECT_THROW((void) configure_multimodal_task_impl(task, false, {{"prompt", "<__media__>"}}, {{0x01}}),
611+
EXPECT_THROW((void)configure_multimodal_task_impl(task, false, {{"prompt", "<__media__>"}}, {{0x01}}),
612612
std::invalid_argument);
613613
}
614614

615615
TEST(ConfigureMultimodalTask, NonStringPromptThrows) {
616616
server_task task(SERVER_TASK_TYPE_COMPLETION);
617-
EXPECT_THROW((void) configure_multimodal_task_impl(task, true, {{"prompt", json::array({1, 2})}}, {{0x01}}),
617+
EXPECT_THROW((void)configure_multimodal_task_impl(task, true, {{"prompt", json::array({1, 2})}}, {{0x01}}),
618618
std::invalid_argument);
619619
}

0 commit comments

Comments
 (0)