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

Function EnableCoverageInRuntime

testing/testrunner/coverage_index.cc:259–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259absl::Status EnableCoverageInRuntime(cel::Runtime& runtime,
260 CoverageIndex& coverage_index) {
261 auto& runtime_impl =
262 cel::internal::down_cast<runtime_internal::RuntimeImpl&>(runtime);
263 runtime_impl.expr_builder().AddProgramOptimizer(
264 google::api::expr::runtime::CreateInstrumentationExtension(
265 InstrumentationFactoryForCoverage(coverage_index)));
266 return absl::OkStatus();
267}
268
269absl::Status EnableCoverageInCelExpressionBuilder(
270 CelExpressionBuilder& cel_expression_builder,

Callers 4

TESTFunction · 0.85
EnableCoverageMethod · 0.85
TESTFunction · 0.85
mainFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68