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

Method FakeBoolMap

eval/public/builtin_func_test.cc:1184–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182class FakeBoolMap : public FakeMap<bool> {
1183 public:
1184 explicit FakeBoolMap(const std::map<bool, CelValue>& data)
1185 : FakeMap(data, CelValue::CreateBool,
1186 [](CelValue v) -> absl::optional<bool> {
1187 if (!v.IsBool()) {
1188 return absl::nullopt;
1189 }
1190 return v.BoolOrDie();
1191 }) {}
1192};
1193
1194class FakeInt64Map : public FakeMap<int64_t> {

Callers

nothing calls this directly

Calls 2

BoolOrDieMethod · 0.80
IsBoolMethod · 0.45

Tested by

no test coverage detected