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