MCPcopy Index your code
hub / github.com/coder/coder / newFakeNetworkStatsSource

Function newFakeNetworkStatsSource

agent/stats_internal_test.go:156–163  ·  view source on GitHub ↗
(ctx context.Context, t testing.TB)

Source from the content-addressed store, hash-verified

154}
155
156func 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
165type fakeCollector struct {
166 t testing.TB

Callers 1

TestStatsReporterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected