MCPcopy
hub / github.com/NVIDIA/aistore / AssertFunc

Function AssertFunc

cmn/debug/debug_on.go:121–125  ·  view source on GitHub ↗
(f func() bool, a ...interface{})

Source from the content-addressed store, hash-verified

119}
120
121func AssertFunc(f func() bool, a ...interface{}) {
122 if !f() {
123 _panic(a...)
124 }
125}
126
127func AssertMsg(cond bool, msg string) {
128 if !cond {

Callers 5

forwardCPMethod · 0.92
finiMethod · 0.92
RemoveMethod · 0.92
GetCopiesMethod · 0.92
syncMetaWithCopiesMethod · 0.92

Calls 2

fFunction · 0.85
_panicFunction · 0.85

Tested by

no test coverage detected