MCPcopy Create free account
hub / github.com/cel-expr/cel-go / TestInputActivationFactory

Function TestInputActivationFactory

tools/celtest/test_runner.go:236–241  ·  view source on GitHub ↗

TestInputActivationFactory updates the test runner with the provided activation factory. The activation factory is used to create a CEL activation from the provided variables.

(f ActivationFactory)

Source from the content-addressed store, hash-verified

234// TestInputActivationFactory updates the test runner with the provided activation factory.
235// The activation factory is used to create a CEL activation from the provided variables.
236func TestInputActivationFactory(f ActivationFactory) TestRunnerOption {
237 return func(tr *TestRunner) (*TestRunner, error) {
238 tr.activationFactory = f
239 return tr, nil
240 }
241}
242
243// TestSuiteParser is an interface for parsing a test suite:
244// - ParseTextproto: Returns a cel.spec.expr.conformance.test.TestSuite message.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected