| 53 | FakeIncrementExpressionStep() : ExpressionStep(0, true) {} |
| 54 | |
| 55 | absl::Status Evaluate(ExecutionFrame* frame) const override { |
| 56 | auto value = frame->value_stack().Peek(); |
| 57 | frame->value_stack().Pop(1); |
| 58 | EXPECT_TRUE(value->Is<IntValue>()); |
| 59 | int64_t val = value.GetInt().NativeValue(); |
| 60 | frame->value_stack().Push(CreateIntValue(val + 1)); |
| 61 | return absl::OkStatus(); |
| 62 | } |
| 63 | }; |
| 64 | |
| 65 | TEST(EvaluatorCoreTest, ExecutionFrameNext) { |
nothing calls this directly
no test coverage detected