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

Function TestFrameSetContext

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

Source from the content-addressed store, hash-verified

439}
440
441func TestFrameSetContext(t *testing.T) {
442 ctx := context.Background()
443 f := mustNewExecutionFrame(t, EmptyActivation())
444 defer f.Close()
445
446 if err := f.SetContext(ctx, 1); err != nil {
447 t.Errorf("SetContext failed: %v", err)
448 }
449}
450
451func TestFrameSetContextTwiceError(t *testing.T) {
452 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