| 1218 | class FakeStringMap : public FakeMap<CelValue::StringHolder> { |
| 1219 | public: |
| 1220 | explicit FakeStringMap(const std::map<CelValue::StringHolder, CelValue>& data) |
| 1221 | : FakeMap( |
| 1222 | data, |
| 1223 | [](CelValue::StringHolder v) { return CelValue::CreateString(v); }, |
| 1224 | [](CelValue v) -> absl::optional<CelValue::StringHolder> { |
| 1225 | if (!v.IsString()) { |
| 1226 | return absl::nullopt; |
| 1227 | } |
| 1228 | return v.StringOrDie(); |
| 1229 | }) {} |
| 1230 | }; |
| 1231 | |
| 1232 | // Test list index access function |
nothing calls this directly
no test coverage detected