(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestBandwidth(t *testing.T) { |
| 13 | if !testutils.IsSingleTesting() { |
| 14 | return |
| 15 | } |
| 16 | |
| 17 | var bandwidth = ratelimit.NewBandwidth(32 << 10) |
| 18 | bandwidth.Ack(context.Background(), 123) |
| 19 | bandwidth.Ack(context.Background(), 16 << 10) |
| 20 | bandwidth.Ack(context.Background(), 32 << 10) |
| 21 | } |
| 22 | |
| 23 | func TestBandwidth_0(t *testing.T) { |
| 24 | var bandwidth = ratelimit.NewBandwidth(0) |
nothing calls this directly
no test coverage detected