--------------------------------------------------------------------------- putToOutput ---------------------------------------------------------------------------
(t *testing.T)
| 459 | // --------------------------------------------------------------------------- |
| 460 | |
| 461 | func TestPutToOutput_Normal(t *testing.T) { |
| 462 | ctx, cancel := context.WithCancel(context.Background()) |
| 463 | defer cancel() |
| 464 | pool := newTestBasePool(ctx, cancel) |
| 465 | |
| 466 | pool.putToOutput(newTestBaseline()) |
| 467 | |
| 468 | select { |
| 469 | case <-pool.OutputCh: |
| 470 | case <-time.After(time.Second): |
| 471 | t.Fatal("putToOutput: receive timed out") |
| 472 | } |
| 473 | pool.Outwg.Done() |
| 474 | pool.Outwg.Wait() |
| 475 | } |
| 476 | |
| 477 | func TestPutToOutputSnapshotsBaseline(t *testing.T) { |
| 478 | ctx, cancel := context.WithCancel(context.Background()) |
nothing calls this directly
no test coverage detected