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

Function TEST_F

eval/eval/compiler_constant_step_test.cc:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46};
47
48TEST_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
60TEST_F(CompilerConstantStepTest, TypeId) {
61 CompilerConstantStep step(cel::IntValue(42), -1, false);

Callers

nothing calls this directly

Calls 5

IntValueClass · 0.50
NativeValueMethod · 0.45
GetIntMethod · 0.45
GetNativeTypeIdMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected