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

Method Events

internal/telemetry/fake.go:32–38  ·  view source on GitHub ↗

Events returns copies of all captured events with their latest updates.

()

Source from the content-addressed store, hash-verified

30
31// Events returns copies of all captured events with their latest updates.
32func (r *EventRecorderSpy) Events() []ghtelemetry.Event {
33 var events []ghtelemetry.Event
34 for _, event := range r.events {
35 events = append(events, cloneEvent(*event))
36 }
37 return events
38}
39
40// InvocationRecorderSpy adds invocation sampling to EventRecorderSpy.
41type InvocationRecorderSpy struct {

Calls 1

cloneEventFunction · 0.85