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

Function TestFrameSetContextChildError

interpreter/frame_test.go:465–476  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

463}
464
465func TestFrameSetContextChildError(t *testing.T) {
466 ctx := context.Background()
467 f := mustNewExecutionFrame(t, EmptyActivation())
468 defer f.Close()
469
470 child := f.Push(EmptyActivation())
471 defer child.Pop()
472
473 if err := child.SetContext(ctx, 1); err == nil {
474 t.Error("expected SetContext on a child frame to return an error, got nil")
475 }
476}
477
478func TestNewExecutionFrameInvalidInput(t *testing.T) {
479 f, err := NewExecutionFrame(123)

Callers

nothing calls this directly

Calls 7

mustNewExecutionFrameFunction · 0.85
EmptyActivationFunction · 0.85
CloseMethod · 0.80
SetContextMethod · 0.80
PushMethod · 0.45
PopMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected