(t testing.TB)
| 186 | } |
| 187 | |
| 188 | func newFakeCollector(t testing.TB) *fakeCollector { |
| 189 | return &fakeCollector{ |
| 190 | t: t, |
| 191 | calls: make(chan map[netlogtype.Connection]netlogtype.Counts), |
| 192 | stats: make(chan *proto.Stats), |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | type fakeStatsDest struct { |
| 197 | reqs chan *proto.UpdateStatsRequest |