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