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

Function TEST

eval/eval/attribute_trail_test.cc:13–19  ·  view source on GitHub ↗

Attribute Trail behavior

Source from the content-addressed store, hash-verified

11
12// Attribute Trail behavior
13TEST(AttributeTrailTest, AttributeTrailEmptyStep) {
14 std::string step = "step";
15 CelValue step_value = CelValue::CreateString(&step);
16 AttributeTrail trail;
17 ASSERT_TRUE(trail.Step(&step).empty());
18 ASSERT_TRUE(trail.Step(CreateCelAttributeQualifier(step_value)).empty());
19}
20
21TEST(AttributeTrailTest, AttributeTrailStep) {
22 std::string step = "step";

Callers

nothing calls this directly

Calls 5

AttributeTrailClass · 0.85
attributeMethod · 0.80
emptyMethod · 0.45
StepMethod · 0.45

Tested by

no test coverage detected