TestAssertions implementation
| 322 | |
| 323 | // TestAssertions implementation |
| 324 | void TestAssertions::assertSuccess(const GenerateResult& result) { |
| 325 | EXPECT_TRUE(result.is_success()) |
| 326 | << "Expected successful result but got error: " << result.error_message(); |
| 327 | EXPECT_FALSE(result.text.empty()) |
| 328 | << "Expected non-empty text in successful result"; |
| 329 | EXPECT_FALSE(result.error.has_value()) |
| 330 | << "Expected no error in successful result"; |
| 331 | } |
| 332 | |
| 333 | void TestAssertions::assertError(const GenerateResult& result, |
| 334 | const std::string& expected_error) { |
nothing calls this directly
no test coverage detected