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

Function TestBandwidth_0

internal/utils/ratelimit/bandwidth_test.go:23–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestBandwidth_0(t *testing.T) {
24 var bandwidth = ratelimit.NewBandwidth(0)
25 bandwidth.Ack(context.Background(), 123)
26 bandwidth.Ack(context.Background(), 123456)
27}

Callers

nothing calls this directly

Calls 2

NewBandwidthFunction · 0.92
AckMethod · 0.45

Tested by

no test coverage detected