(results *responses, wg *sync.WaitGroup)
| 168 | } |
| 169 | |
| 170 | func (s *Session) testWriteLoop(results *responses, wg *sync.WaitGroup) { |
| 171 | for msg := range s.send { |
| 172 | results.messages = append(results.messages, msg) |
| 173 | } |
| 174 | wg.Done() |
| 175 | } |
| 176 | |
| 177 | func (h *Hub) testHubLoop(t *testing.T, results map[string][]*ServerComMessage, done chan bool) { |
| 178 | t.Helper() |
no test coverage detected