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

Method FakeInt64Map

eval/public/builtin_func_test.cc:1196–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194class FakeInt64Map : public FakeMap<int64_t> {
1195 public:
1196 explicit FakeInt64Map(const std::map<int64_t, CelValue>& data)
1197 : FakeMap(data, CelValue::CreateInt64,
1198 [](CelValue v) -> absl::optional<int64_t> {
1199 if (!v.IsInt64()) {
1200 return absl::nullopt;
1201 }
1202 return v.Int64OrDie();
1203 }) {}
1204};
1205
1206class FakeUint64Map : public FakeMap<uint64_t> {

Callers

nothing calls this directly

Calls 2

IsInt64Method · 0.80
Int64OrDieMethod · 0.80

Tested by

no test coverage detected