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

Function TEST

common/values/map_value_test.cc:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39using ::testing::UnorderedElementsAreArray;
40
41TEST(MapValue, CheckKey) {
42 EXPECT_THAT(CheckMapKey(BoolValue()), IsOk());
43 EXPECT_THAT(CheckMapKey(IntValue()), IsOk());
44 EXPECT_THAT(CheckMapKey(UintValue()), IsOk());
45 EXPECT_THAT(CheckMapKey(StringValue()), IsOk());
46 EXPECT_THAT(CheckMapKey(BytesValue()),
47 StatusIs(absl::StatusCode::kInvalidArgument));
48}
49
50class MapValueTest : public common_internal::ValueTest<> {
51 public:

Callers

nothing calls this directly

Calls 6

CheckMapKeyFunction · 0.85
BoolValueClass · 0.70
IntValueClass · 0.70
UintValueClass · 0.70
StringValueClass · 0.70
BytesValueClass · 0.70

Tested by

no test coverage detected