refreshTelemetrySpy captures recorded events and the requested sample rate. The internal/telemetry spies cannot be used here because that package imports this one.
| 21 | // refreshTelemetrySpy captures recorded events and the requested sample rate. The internal/telemetry spies cannot be |
| 22 | // used here because that package imports this one. |
| 23 | type refreshTelemetrySpy struct { |
| 24 | events []ghtelemetry.Event |
| 25 | sampleRate int |
| 26 | } |
| 27 | |
| 28 | func (s *refreshTelemetrySpy) Record(event ghtelemetry.Event) { |
| 29 | s.events = append(s.events, event) |
nothing calls this directly
no outgoing calls
no test coverage detected