MCPcopy Create free account
hub / github.com/algolia/cli / TestTrackEvent_NoClientInContextIsSafe

Function TestTrackEvent_NoClientInContextIsSafe

pkg/telemetry/events_test.go:35–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestTrackEvent_NoClientInContextIsSafe(t *testing.T) {
36 // Must not panic when the context carries no telemetry client.
37 TrackEvent(context.Background(), AuthStarted(FlowLogin, false))
38}
39
40func TestAuthStarted(t *testing.T) {
41 event := AuthStarted(FlowSignup, true)

Callers

nothing calls this directly

Calls 2

TrackEventFunction · 0.85
AuthStartedFunction · 0.85

Tested by

no test coverage detected