(t *testing.T)
| 449 | } |
| 450 | |
| 451 | func TestFrameSetContextTwiceError(t *testing.T) { |
| 452 | ctx := context.Background() |
| 453 | f := mustNewExecutionFrame(t, EmptyActivation()) |
| 454 | defer f.Close() |
| 455 | |
| 456 | if err := f.SetContext(ctx, 1); err != nil { |
| 457 | t.Fatalf("SetContext failed first time: %v", err) |
| 458 | } |
| 459 | |
| 460 | if err := f.SetContext(ctx, 1); err == nil { |
| 461 | t.Error("expected SetContext to return an error when called twice, got nil") |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | func TestFrameSetContextChildError(t *testing.T) { |
| 466 | ctx := context.Background() |
nothing calls this directly
no test coverage detected