Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
126
func
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
TestGetBucketNumbers
Function · 0.85
TestPutBucketNumbers
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected