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

Function TEST_P

eval/eval/create_map_step_test.cc:169–175  ·  view source on GitHub ↗

Test that Empty Map is created successfully.

Source from the content-addressed store, hash-verified

167
168// Test that Empty Map is created successfully.
169TEST_P(CreateMapStepTest, TestCreateEmptyMap) {
170 ASSERT_OK_AND_ASSIGN(CelValue result, RunMapExpression({}));
171 ASSERT_TRUE(result.IsMap());
172
173 const CelMap* cel_map = result.MapOrDie();
174 ASSERT_EQ(cel_map->size(), 0);
175}
176
177// Test message creation if unknown argument is passed
178TEST(CreateMapStepTest, TestMapCreateWithUnknown) {

Callers

nothing calls this directly

Calls 8

MapOrDieMethod · 0.80
IsInt64Method · 0.80
Int64OrDieMethod · 0.80
IsMapMethod · 0.45
sizeMethod · 0.45
GetMethod · 0.45
has_valueMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected