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

Function TestActivation_Resolve

interpreter/activation_test.go:40–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestActivation_Resolve(t *testing.T) {
41 activation, _ := NewActivation(map[string]any{"a": types.True})
42 if val, found := activation.ResolveName("a"); !found || val != types.True {
43 t.Error("Activation failed to resolve 'a'")
44 }
45}
46
47func TestActivation_ResolveLazy(t *testing.T) {
48 var v ref.Val

Callers

nothing calls this directly

Calls 3

ResolveNameMethod · 0.95
NewActivationFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected