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

Function TestFlowTracker_NilTrackerIsSafe

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

Source from the content-addressed store, hash-verified

114}
115
116func TestFlowTracker_NilTrackerIsSafe(t *testing.T) {
117 var tracker *FlowTracker
118 tracker.SetStep(StepTerms)
119 assert.Equal(t, Step(""), tracker.Step())
120 assert.Equal(t, int64(0), tracker.DurationMS())
121}
122
123func TestFlowTracker_TracksStepAndDuration(t *testing.T) {
124 tracker := NewFlowTracker()

Callers

nothing calls this directly

Calls 4

SetStepMethod · 0.95
StepMethod · 0.95
DurationMSMethod · 0.95
StepTypeAlias · 0.85

Tested by

no test coverage detected