MCPcopy Index your code
hub / github.com/syncthing/syncthing / shouldPanic

Function shouldPanic

lib/protocol/bufferpool_test.go:126–134  ·  view source on GitHub ↗
(t *testing.T, fn func())

Source from the content-addressed store, hash-verified

124}
125
126func shouldPanic(t *testing.T, fn func()) {
127 defer func() {
128 if r := recover(); r == nil {
129 t.Errorf("did not panic")
130 }
131 }()
132
133 fn()
134}

Callers 2

TestGetBucketNumbersFunction · 0.85
TestPutBucketNumbersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected