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

Function TestFrameSetContext

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

Source from the content-addressed store, hash-verified

442}
443
444func TestFrameSetContext(t *testing.T) {
445 ctx := context.Background()
446 f := mustNewExecutionFrame(t, EmptyActivation())
447 defer f.Close()
448
449 if err := f.SetContext(ctx, 1); err != nil {
450 t.Errorf("SetContext failed: %v", err)
451 }
452}
453
454func TestFrameSetContextTwiceError(t *testing.T) {
455 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

mustNewExecutionFrameFunction · 0.85
EmptyActivationFunction · 0.85
CloseMethod · 0.80
SetContextMethod · 0.80

Tested by

no test coverage detected