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

Method RecordEvents

pkg/cmd/send-telemetry/send_telemetry_test.go:26–29  ·  view source on GitHub ↗
(_ context.Context, req *observability.RecordEventsRequest)

Source from the content-addressed store, hash-verified

24}
25
26func (m *mockTelemetryAPI) RecordEvents(_ context.Context, req *observability.RecordEventsRequest) (*observability.RecordEventsResponse, error) {
27 m.request = req
28 return &observability.RecordEventsResponse{}, m.err
29}
30
31func TestNewCmdSendTelemetry(t *testing.T) {
32 tests := []struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected