fakeTelemetryReporter is a fake implementation of telemetry.Reporter that sends snapshots on a buffered channel, useful for testing.
| 3285 | // fakeTelemetryReporter is a fake implementation of telemetry.Reporter |
| 3286 | // that sends snapshots on a buffered channel, useful for testing. |
| 3287 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected