MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Evaluate

Method Evaluate

eval/eval/evaluator_core_test.cc:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
65TEST(EvaluatorCoreTest, ExecutionFrameNext) {

Callers

nothing calls this directly

Calls 6

CreateIntValueFunction · 0.85
PeekMethod · 0.45
PopMethod · 0.45
NativeValueMethod · 0.45
GetIntMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected