(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func 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 | |
| 212 | func TestUsagePusher_RunCancelExits(t *testing.T) { |
| 213 | t.Parallel() |
nothing calls this directly
no test coverage detected