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

Function testActivation

interpreter/prune_test.go:559–569  ·  view source on GitHub ↗
(t *testing.T, in any)

Source from the content-addressed store, hash-verified

557}
558
559func testActivation(t *testing.T, in any) Activation {
560 t.Helper()
561 if in == nil {
562 return EmptyActivation()
563 }
564 a, err := NewActivation(in)
565 if err != nil {
566 t.Fatalf("NewActivation(%v) failed: %v", in, err)
567 }
568 return a
569}
570
571func optionalDecls(t *testing.T) []*decls.FunctionDecl {
572 paramType := types.NewTypeParamType("T")

Callers 1

TestPruneFunction · 0.85

Calls 2

EmptyActivationFunction · 0.85
NewActivationFunction · 0.70

Tested by

no test coverage detected