| 37 | using Severity = TypeCheckIssue::Severity; |
| 38 | |
| 39 | TEST(ValidationResultTest, IsValidWithAst) { |
| 40 | ValidationResult result(std::make_unique<Ast>(), {}); |
| 41 | EXPECT_TRUE(result.IsValid()); |
| 42 | EXPECT_THAT(result.GetAst(), NotNull()); |
| 43 | EXPECT_THAT(result.ReleaseAst(), IsOkAndHolds(NotNull())); |
| 44 | } |
| 45 | |
| 46 | TEST(ValidationResultTest, IsNotValidWithoutAst) { |
| 47 | ValidationResult result({}); |
nothing calls this directly
no test coverage detected