| 134 | } |
| 135 | |
| 136 | type fakeNetworkStatsSource struct { |
| 137 | sync.Mutex |
| 138 | ctx context.Context |
| 139 | t testing.TB |
| 140 | callback func(start, end time.Time, virtual, physical map[netlogtype.Connection]netlogtype.Counts) |
| 141 | period chan time.Duration |
| 142 | } |
| 143 | |
| 144 | func (f *fakeNetworkStatsSource) SetConnStatsCallback(maxPeriod time.Duration, _ int, dump func(start time.Time, end time.Time, virtual map[netlogtype.Connection]netlogtype.Counts, physical map[netlogtype.Connection]netlogtype.Counts)) { |
| 145 | f.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected