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

Function Assertf

cmn/debug/debug_on.go:139–144  ·  view source on GitHub ↗
(cond bool, f string, a ...interface{})

Source from the content-addressed store, hash-verified

137}
138
139func Assertf(cond bool, f string, a ...interface{}) {
140 if !cond {
141 msg := fmt.Sprintf(f, a...)
142 _panic(msg)
143 }
144}
145
146func AssertMutexLocked(m *sync.Mutex) {
147 state := reflect.ValueOf(m).Elem().FieldByName("state")

Callers 15

dispatchAdminReqMethod · 0.92
nextMsgMethod · 0.92
readHdrMethod · 0.92
newStreamBaseFunction · 0.92
ExtObjHeaderFunction · 0.92
ExtMsgFunction · 0.92
NewStreamsFunction · 0.92
copyPropsFunction · 0.92
SetValueMethod · 0.92
ValidateMethod · 0.92
WriteAnyMethod · 0.92
CreateMethod · 0.92

Calls 1

_panicFunction · 0.85

Tested by

no test coverage detected