Verifies that no signals are dropped, even if there is not enough space in the destination channel.
(t *testing.T)
| 9 | // Verifies that no signals are dropped, even if there is not enough space |
| 10 | // in the destination channel. |
| 11 | func TestSequentialHandlerNoDrop(t *testing.T) { |
| 12 | t.Parallel() |
| 13 | |
| 14 | handler := NewSequentialSignalHandler() |
| 15 | |
| 16 | channel := make(chan *Signal, 2) |
| 17 | handler.(SignalRegistrar).AddSignal(channel) |
| 18 | |
| 19 | writeSignals(handler, 1000) |
| 20 | |
| 21 | readSignals(t, channel) |
| 22 | } |
| 23 | |
| 24 | // Verifies that signals are written to the destination channel in the |
| 25 | // order they are received, in a typical concurrent reader/writer scenario. |
nothing calls this directly
no test coverage detected
searching dependent graphs…