We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2fc9d4 commit cf7be05Copy full SHA for cf7be05
test/yolo_test.cpp
@@ -76,8 +76,8 @@ TEST_F(YoloInferenceTest, CreateSessionWithValidModel)
76
TEST_F(YoloInferenceTest, CreateSessionWithInvalidModel)
77
{
78
params.modelPath = "nonexistent_model.onnx";
79
- const char* result = yolo->CreateSession(params);
80
- EXPECT_NE(result, nullptr) << "CreateSession should fail with invalid model path";
+ EXPECT_THROW(yolo->CreateSession(params), std::runtime_error)
+ << "CreateSession should throw an exception with invalid model path";
81
}
82
83
TEST_F(YoloInferenceTest, FullInferencePipeline)
0 commit comments