| 46 | }; |
| 47 | |
| 48 | TEST_F(CompilerConstantStepTest, Evaluate) { |
| 49 | ExecutionPath path; |
| 50 | path.push_back( |
| 51 | std::make_unique<CompilerConstantStep>(cel::IntValue(42), -1, false)); |
| 52 | |
| 53 | ExecutionFrame frame(path, empty_activation_, options_, state_); |
| 54 | |
| 55 | ASSERT_OK_AND_ASSIGN(cel::Value result, frame.Evaluate()); |
| 56 | |
| 57 | EXPECT_EQ(result.GetInt().NativeValue(), 42); |
| 58 | } |
| 59 | |
| 60 | TEST_F(CompilerConstantStepTest, TypeId) { |
| 61 | CompilerConstantStep step(cel::IntValue(42), -1, false); |
nothing calls this directly
no test coverage detected