MCPcopy Create free account
hub / github.com/akalin/gopar / TestCoderCauchyNewCoderError

Function TestCoderCauchyNewCoderError

rsec16/coder_test.go:20–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestCoderCauchyNewCoderError(t *testing.T) {
21 // Ideally, we'd test that NewCoder(32768, 32767) succeeds,
22 // but doing so takes 15 seconds!
23 _, err := newCoderCauchy(32768, 32768)
24 require.Equal(t, errors.New("too many shards"), err)
25}
26
27func TestGenerators(t *testing.T) {
28 require.Equal(t, 32768, len(generators))

Callers

nothing calls this directly

Calls 1

newCoderCauchyFunction · 0.85

Tested by

no test coverage detected