MCPcopy
hub / github.com/canopy-network/canopy / TestEventsTracker_GetReference

Function TestEventsTracker_GetReference

lib/event_test.go:42–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

40}
41
42func TestEventsTracker_GetReference(t *testing.T) {
43 tracker := &EventsTracker{Reference: "test-ref"}
44
45 ref := tracker.GetReference()
46 if ref != "test-ref" {
47 t.Errorf("expected 'test-ref', got %s", ref)
48 }
49}
50
51func TestEventsTracker_Reset(t *testing.T) {
52 tracker := &EventsTracker{

Callers

nothing calls this directly

Calls 2

GetReferenceMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected