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

Function TestFrameSetContext

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

Source from the content-addressed store, hash-verified

422}
423
424func TestFrameSetContext(t *testing.T) {
425 ctx := context.Background()
426 f := mustNewExecutionFrame(t, EmptyActivation())
427 defer f.Close()
428
429 if err := f.SetContext(ctx, 1); err != nil {
430 t.Errorf("SetContext failed: %v", err)
431 }
432}
433
434func TestFrameSetContextTwiceError(t *testing.T) {
435 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