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

Method FakeUint64Map

eval/public/builtin_func_test.cc:1208–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206class FakeUint64Map : public FakeMap<uint64_t> {
1207 public:
1208 explicit FakeUint64Map(const std::map<uint64_t, CelValue>& data)
1209 : FakeMap(data, CelValue::CreateUint64,
1210 [](CelValue v) -> absl::optional<uint64_t> {
1211 if (!v.IsUint64()) {
1212 return absl::nullopt;
1213 }
1214 return v.Uint64OrDie();
1215 }) {}
1216};
1217
1218class FakeStringMap : public FakeMap<CelValue::StringHolder> {

Callers

nothing calls this directly

Calls 2

IsUint64Method · 0.80
Uint64OrDieMethod · 0.80

Tested by

no test coverage detected