(t *testing.T, n int)
| 161 | } |
| 162 | |
| 163 | func newSubscribers(t *testing.T, n int) map[uuid.UUID]chan codersdk.ChatStreamEvent { |
| 164 | t.Helper() |
| 165 | subs := make(map[uuid.UUID]chan codersdk.ChatStreamEvent, n) |
| 166 | for range n { |
| 167 | subs[uuid.New()] = make(chan codersdk.ChatStreamEvent, 1) |
| 168 | } |
| 169 | return subs |
| 170 | } |
| 171 | |
| 172 | // TestStreamStateCollector_BufferDroppedIncrementsOnCapacity pre-fills |
| 173 | // a buffer to capacity and asserts stream_buffer_dropped_total |
no test coverage detected