MCPcopy Index your code
hub / github.com/cli/cli / mockTelemetryAPI

Struct mockTelemetryAPI

pkg/cmd/send-telemetry/send_telemetry_test.go:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19)
20
21type mockTelemetryAPI struct {
22 request *observability.RecordEventsRequest
23 err error
24}
25
26func (m *mockTelemetryAPI) RecordEvents(_ context.Context, req *observability.RecordEventsRequest) (*observability.RecordEventsResponse, error) {
27 m.request = req

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected