| 247 | } |
| 248 | |
| 249 | InstrumentationFactory InstrumentationFactoryForCoverage( |
| 250 | CoverageIndex& coverage_index) { |
| 251 | return [&](const cel::Ast& ast) -> Instrumentation { |
| 252 | return [&](int64_t node_id, const cel::Value& value) -> absl::Status { |
| 253 | coverage_index.RecordCoverage(node_id, value); |
| 254 | return absl::OkStatus(); |
| 255 | }; |
| 256 | }; |
| 257 | } |
| 258 | |
| 259 | absl::Status EnableCoverageInRuntime(cel::Runtime& runtime, |
| 260 | CoverageIndex& coverage_index) { |
no test coverage detected