| 71 | class ValueToAdaptedVisitorTest : public ::testing::Test {}; |
| 72 | |
| 73 | TEST_F(ValueToAdaptedVisitorTest, Int) { |
| 74 | Value v = cel::IntValue(10); |
| 75 | |
| 76 | int64_t out; |
| 77 | ASSERT_THAT(ValueToAdaptedVisitor{v}(&out), IsOk()); |
| 78 | |
| 79 | EXPECT_EQ(out, 10); |
| 80 | } |
| 81 | |
| 82 | TEST_F(ValueToAdaptedVisitorTest, IntWrongKind) { |
| 83 | Value v = cel::UintValue(10); |
nothing calls this directly
no test coverage detected