MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / TestUsagePusher_NoSenderSkips

Function TestUsagePusher_NoSenderSkips

internal/nodeagent/usage_test.go:202–210  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

200}
201
202func TestUsagePusher_NoSenderSkips(t *testing.T) {
203 t.Parallel()
204 api := &mockUsageAPI{}
205 p := NewUsagePusher(api, time.Hour)
206 p.tick(context.Background())
207 if api.callCount() != 0 {
208 t.Fatalf("no sender should skip DoUsage, got calls=%d", api.callCount())
209 }
210}
211
212func TestUsagePusher_RunCancelExits(t *testing.T) {
213 t.Parallel()

Callers

nothing calls this directly

Calls 3

tickMethod · 0.95
callCountMethod · 0.95
NewUsagePusherFunction · 0.85

Tested by

no test coverage detected