MCPcopy
hub / github.com/syncthing/syncthing / must

Function must

lib/model/testos_test.go:15–20  ·  view source on GitHub ↗
(f fatal, err error)

Source from the content-addressed store, hash-verified

13}
14
15func must(f fatal, err error) {
16 f.Helper()
17 if err != nil {
18 f.Fatal(err)
19 }
20}
21
22func mustV[T any](v T, err error) T {
23 if err != nil {

Callers 15

testCurrentFolderFileMethod · 0.85
testCompletionMethod · 0.85
addDevice2Function · 0.85
writeFileFunction · 0.85
writeFilePermFunction · 0.85
TestRecvOnlyRevertNeedsFunction · 0.85
TestRecvOnlyUndoChangesFunction · 0.85
TestRecvOnlyRevertOwnIDFunction · 0.85

Calls 2

HelperMethod · 0.80
FatalMethod · 0.80

Tested by

no test coverage detected