(t *testing.T)
| 359 | } |
| 360 | |
| 361 | func TestFrameClose(t *testing.T) { |
| 362 | frame := mustNewExecutionFrame(t, EmptyActivation()) |
| 363 | ctx := context.Background() |
| 364 | frame.SetContext(ctx, 1) |
| 365 | |
| 366 | frameCtx := frame.ctx.ctx |
| 367 | |
| 368 | select { |
| 369 | case <-frameCtx.Done(): |
| 370 | t.Fatal("context canceled before Close()") |
| 371 | default: |
| 372 | } |
| 373 | |
| 374 | frame.Close() |
| 375 | |
| 376 | select { |
| 377 | case <-frameCtx.Done(): |
| 378 | default: |
| 379 | t.Error("context not canceled after Close()") |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | func TestFrameLifecycleAndPooling(t *testing.T) { |
| 384 | vars := map[string]any{"a": 1, "b": 2} |
nothing calls this directly
no test coverage detected