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

Struct fakeTelemetryReporter

coderd/workspaceagents_test.go:3287–3292  ·  view source on GitHub ↗

fakeTelemetryReporter is a fake implementation of telemetry.Reporter that sends snapshots on a buffered channel, useful for testing.

Source from the content-addressed store, hash-verified

3285// fakeTelemetryReporter is a fake implementation of telemetry.Reporter
3286// that sends snapshots on a buffered channel, useful for testing.
3287type fakeTelemetryReporter struct {
3288 enabled bool
3289 snapshots chan *telemetry.Snapshot
3290 t testing.TB
3291 ctx context.Context
3292}
3293
3294// newFakeTelemetryReporter creates a new fakeTelemetryReporter with a buffered channel.
3295// The buffer size determines how many snapshots can be reported before blocking.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected