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

Function testFunction

checker/checker_test.go:2907–2914  ·  view source on GitHub ↗
(t testing.TB, name string, opts ...decls.FunctionOpt)

Source from the content-addressed store, hash-verified

2905}
2906
2907func testFunction(t testing.TB, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
2908 t.Helper()
2909 fn, err := decls.NewFunction(name, opts...)
2910 if err != nil {
2911 t.Fatalf("decls.NewFunction(%s) failed: %v", name, err)
2912 }
2913 return fn
2914}
2915
2916func TestVarsInheritance(t *testing.T) {
2917 // Parent environment containing inherited variables 'y' and 'x'

Callers 3

testCasesFunction · 0.70
testEnvsFunction · 0.70

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected