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

Struct refreshTelemetrySpy

internal/config/refreshable_telemetry_test.go:24–27  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected