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

Method CreateFromRuntime

testing/testrunner/cel_test_context.h:80–83  ·  view source on GitHub ↗

Creates a CelTestContext using a `cel::Runtime`. The `cel::Runtime` is used to evaluate the CEL expression by managing the state needed to generate Program.

Source from the content-addressed store, hash-verified

78 // The `cel::Runtime` is used to evaluate the CEL expression by managing
79 // the state needed to generate Program.
80 static std::unique_ptr<CelTestContext> CreateFromRuntime(
81 std::unique_ptr<const cel::Runtime> runtime) {
82 return absl::WrapUnique(new CelTestContext(std::move(runtime)));
83 }
84
85 const cel::Runtime* absl_nullable runtime() const { return runtime_.get(); }
86

Callers

nothing calls this directly

Calls 1

WrapUniqueFunction · 0.85

Tested by

no test coverage detected