MCPcopy Create free account
hub / github.com/eapache/channels / TestBatchingChannelCap

Function TestBatchingChannelCap

batching_channel_test.go:35–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestBatchingChannelCap(t *testing.T) {
36 ch := NewBatchingChannel(Infinity)
37 if ch.Cap() != Infinity {
38 t.Error("incorrect capacity on infinite channel")
39 }
40
41 ch = NewBatchingChannel(5)
42 if ch.Cap() != 5 {
43 t.Error("incorrect capacity on infinite channel")
44 }
45}

Callers

nothing calls this directly

Calls 2

CapMethod · 0.95
NewBatchingChannelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…