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

Function testActivation

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

Source from the content-addressed store, hash-verified

581}
582
583func testActivation(t *testing.T, in any) Activation {
584 t.Helper()
585 if in == nil {
586 return EmptyActivation()
587 }
588 a, err := NewActivation(in)
589 if err != nil {
590 t.Fatalf("NewActivation(%v) failed: %v", in, err)
591 }
592 return a
593}
594
595func optionalDecls(t *testing.T) []*decls.FunctionDecl {
596 paramType := types.NewTypeParamType("T")

Callers 1

TestPruneFunction · 0.85

Calls 2

EmptyActivationFunction · 0.85
NewActivationFunction · 0.70

Tested by

no test coverage detected