MCPcopy
hub / github.com/tinode/chat / testWriteLoop

Method testWriteLoop

server/topic_test.go:170–175  ·  view source on GitHub ↗
(results *responses, wg *sync.WaitGroup)

Source from the content-addressed store, hash-verified

168}
169
170func (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
177func (h *Hub) testHubLoop(t *testing.T, results map[string][]*ServerComMessage, done chan bool) {
178 t.Helper()

Callers 15

TestDispatchHelloFunction · 0.95
TestDispatchLoginFunction · 0.95
TestDispatchAccNewFunction · 0.95
TestDispatchNoMessageFunction · 0.95
TestDispatchSubscribeFunction · 0.80
TestDispatchLeaveFunction · 0.80
TestDispatchLeaveUnsubMeFunction · 0.80

Calls 1

DoneMethod · 0.80

Tested by

no test coverage detected