(ctx context.Context, t testing.TB)
| 154 | } |
| 155 | |
| 156 | func newFakeNetworkStatsSource(ctx context.Context, t testing.TB) *fakeNetworkStatsSource { |
| 157 | f := &fakeNetworkStatsSource{ |
| 158 | ctx: ctx, |
| 159 | t: t, |
| 160 | period: make(chan time.Duration), |
| 161 | } |
| 162 | return f |
| 163 | } |
| 164 | |
| 165 | type fakeCollector struct { |
| 166 | t testing.TB |