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

Function constructActivation

interpreter/runtimecost_test.go:177–187  ·  view source on GitHub ↗
(t *testing.T, in any)

Source from the content-addressed store, hash-verified

175}
176
177func constructActivation(t *testing.T, in any) Activation {
178 t.Helper()
179 if in == nil {
180 return EmptyActivation()
181 }
182 a, err := NewActivation(in)
183 if err != nil {
184 t.Fatalf("NewActivation(%v) failed: %v", in, err)
185 }
186 return a
187}
188
189const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
190

Callers 2

TestTrackCostAdvancedFunction · 0.85
TestRuntimeCostFunction · 0.85

Calls 2

EmptyActivationFunction · 0.85
NewActivationFunction · 0.70

Tested by

no test coverage detected