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

Function mustNewFunction

common/env/env_test.go:1591–1598  ·  view source on GitHub ↗
(t *testing.T, name string, opts ...decls.FunctionOpt)

Source from the content-addressed store, hash-verified

1589}
1590
1591func mustNewFunction(t *testing.T, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
1592 t.Helper()
1593 fn, err := decls.NewFunction(name, opts...)
1594 if err != nil {
1595 t.Fatalf("decls.NewFunction() failed: %v", err)
1596 }
1597 return fn
1598}
1599
1600func assertFuncEquals(t *testing.T, got, want *decls.FunctionDecl) {
1601 t.Helper()

Callers 3

TestSubsetFunctionFunction · 0.85

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected