MCPcopy
hub / github.com/gotify/server / TestBadCryptoReaderPanics

Function TestBadCryptoReaderPanics

auth/token_test.go:33–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestBadCryptoReaderPanics(t *testing.T) {
34 assert.Panics(t, func() {
35 randReader = test.UnreadableReader()
36 defer func() {
37 randReader = rand.Reader
38 }()
39 randIntn(2)
40 })
41}

Callers

nothing calls this directly

Calls 2

UnreadableReaderFunction · 0.92
randIntnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…