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

Function testFunction

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

Source from the content-addressed store, hash-verified

2863}
2864
2865func testFunction(t testing.TB, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
2866 t.Helper()
2867 fn, err := decls.NewFunction(name, opts...)
2868 if err != nil {
2869 t.Fatalf("decls.NewFunction(%s) failed: %v", name, err)
2870 }
2871 return fn
2872}

Callers 3

testCasesFunction · 0.70
testEnvsFunction · 0.70

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected