(t *testing.T)
| 432 | } |
| 433 | |
| 434 | func TestFrameSetContextTwiceError(t *testing.T) { |
| 435 | ctx := context.Background() |
| 436 | f := mustNewExecutionFrame(t, EmptyActivation()) |
| 437 | defer f.Close() |
| 438 | |
| 439 | if err := f.SetContext(ctx, 1); err != nil { |
| 440 | t.Fatalf("SetContext failed first time: %v", err) |
| 441 | } |
| 442 | |
| 443 | if err := f.SetContext(ctx, 1); err == nil { |
| 444 | t.Error("expected SetContext to return an error when called twice, got nil") |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | func TestFrameSetContextChildError(t *testing.T) { |
| 449 | ctx := context.Background() |
nothing calls this directly
no test coverage detected