MCPcopy Create free account
hub / github.com/cli/cli / refreshTelemetrySpy

Struct refreshTelemetrySpy

internal/config/refreshable_telemetry_test.go:23–26  ·  view source on GitHub ↗

refreshTelemetrySpy captures recorded events and the requested sample rate. The internal/telemetry spies cannot be used here because that package imports this one.

Source from the content-addressed store, hash-verified

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.
23type refreshTelemetrySpy struct {
24 events []ghtelemetry.Event
25 sampleRate int
26}
27
28func (s *refreshTelemetrySpy) Record(event ghtelemetry.Event) {
29 s.events = append(s.events, event)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected