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

Function mustNewFunction

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

Source from the content-addressed store, hash-verified

1482}
1483
1484func mustNewFunction(t *testing.T, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
1485 t.Helper()
1486 fn, err := decls.NewFunction(name, opts...)
1487 if err != nil {
1488 t.Fatalf("decls.NewFunction() failed: %v", err)
1489 }
1490 return fn
1491}
1492
1493func assertFuncEquals(t *testing.T, got, want *decls.FunctionDecl) {
1494 t.Helper()

Callers 3

TestSubsetFunctionFunction · 0.85

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected