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

Function CustomTestCompiler

tools/celtest/test_runner.go:464–469  ·  view source on GitHub ↗

CustomTestCompiler returns a TestRunnerOption which configures the test runner with a custom compiler.

(c compiler.Compiler)

Source from the content-addressed store, hash-verified

462// CustomTestCompiler returns a TestRunnerOption which configures the test runner with
463// a custom compiler.
464func CustomTestCompiler(c compiler.Compiler) TestRunnerOption {
465 return func(tr *TestRunner) (*TestRunner, error) {
466 tr.Compiler = c
467 return tr, nil
468 }
469}
470
471// FileDescriptorSet creates a Test Runner Option which adds a file descriptor set to the test
472// runner. The file descriptor set is used to register proto messages in the global proto registry.

Callers 1

Calls

no outgoing calls

Tested by 1