(t *testing.T)
| 94 | } |
| 95 | |
| 96 | func TestCloserStack_Empty(t *testing.T) { |
| 97 | t.Parallel() |
| 98 | ctx := testutil.Context(t, testutil.WaitShort) |
| 99 | logger := testutil.Logger(t) |
| 100 | uut := newCloserStack(ctx, logger, quartz.NewMock(t)) |
| 101 | |
| 102 | closed := make(chan struct{}) |
| 103 | go func() { |
| 104 | defer close(closed) |
| 105 | uut.close(nil) |
| 106 | }() |
| 107 | testutil.TryReceive(ctx, t, closed) |
| 108 | } |
| 109 | |
| 110 | func TestCloserStack_Context(t *testing.T) { |
| 111 | t.Parallel() |
nothing calls this directly
no test coverage detected