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

Function InstrumentationFactoryForCoverage

testing/testrunner/coverage_index.cc:249–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249InstrumentationFactory 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
259absl::Status EnableCoverageInRuntime(cel::Runtime& runtime,
260 CoverageIndex& coverage_index) {

Callers 2

EnableCoverageInRuntimeFunction · 0.85

Calls 1

RecordCoverageMethod · 0.80

Tested by

no test coverage detected