MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestTrackers_Add

Function TestTrackers_Add

internal/trackers/manager_test.go:50–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestTrackers_Add(t *testing.T) {
51 var tr = trackers.Begin("a")
52 time.Sleep(50 * time.Millisecond)
53 tr.Add(-10 * time.Millisecond)
54 tr.End()
55 t.Log(trackers.SharedManager.Labels())
56}

Callers

nothing calls this directly

Calls 5

BeginFunction · 0.92
LogMethod · 0.80
LabelsMethod · 0.80
AddMethod · 0.65
EndMethod · 0.45

Tested by

no test coverage detected