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

Function Assert

cmn/debug/debug_on.go:115–119  ·  view source on GitHub ↗
(cond bool, a ...interface{})

Source from the content-addressed store, hash-verified

113}
114
115func Assert(cond bool, a ...interface{}) {
116 if !cond {
117 _panic(a...)
118 }
119}
120
121func AssertFunc(f func() bool, a ...interface{}) {
122 if !f() {

Callers 15

RegFunction · 0.92
UnregFunction · 0.92
SetStatsMethod · 0.92
MarshalJSONMethod · 0.92
checkObjMethod · 0.92
parseGoogleCksumHeaderFunction · 0.92
checkJobMethod · 0.92
addJoggerMethod · 0.92
setupXactionMethod · 0.92
setPodEnvVariablesMethod · 0.92
putMethod · 0.92
removeByUUIDMethod · 0.92

Calls 1

_panicFunction · 0.85

Tested by

no test coverage detected