(sid string, uid types.Uid)
| 66 | } |
| 67 | |
| 68 | func (b *TopicTestHelper) newSession(sid string, uid types.Uid) (*Session, *responses) { |
| 69 | s := &Session{ |
| 70 | sid: sid, |
| 71 | uid: uid, |
| 72 | subs: make(map[string]*Subscription), |
| 73 | send: make(chan any, 10), |
| 74 | detach: make(chan string, 10), |
| 75 | } |
| 76 | r := &responses{} |
| 77 | b.sessWg.Add(1) |
| 78 | go s.testWriteLoop(r, b.sessWg) |
| 79 | return s, r |
| 80 | } |
| 81 | |
| 82 | func (b *TopicTestHelper) setUp(t *testing.T, numUsers int, cat types.TopicCat, topicName string, attachSessions bool) { |
| 83 | t.Helper() |
no test coverage detected