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

Method Begin

internal/telemetry/fake.go:25–29  ·  view source on GitHub ↗

Begin captures initial facts and returns a handle for subsequent updates.

(event ghtelemetry.Event)

Source from the content-addressed store, hash-verified

23
24// Begin captures initial facts and returns a handle for subsequent updates.
25func (r *EventRecorderSpy) Begin(event ghtelemetry.Event) ghtelemetry.PendingEvent {
26 event = cloneEvent(event)
27 r.events = append(r.events, &event)
28 return &pendingEventSpy{event: &event}
29}
30
31// Events returns copies of all captured events with their latest updates.
32func (r *EventRecorderSpy) Events() []ghtelemetry.Event {

Callers 1

RecordMethod · 0.95

Calls 1

cloneEventFunction · 0.85

Tested by

no test coverage detected