MCPcopy Index your code
hub / github.com/Shopify/go-lua / assert

Method assert

debug.go:115–119  ·  view source on GitHub ↗
(cond bool)

Source from the content-addressed store, hash-verified

113}
114
115func (l *State) assert(cond bool) {
116 if !cond {
117 l.runtimeError("assertion failure")
118 }
119}
120
121func (l *State) errorMessage() {
122 if l.errorFunction != 0 { // is there an error handling function?

Callers 15

concatErrorMethod · 0.95
concatMethod · 0.95
adjustVarArgsMethod · 0.95
hookMethod · 0.95
reallocStackMethod · 0.95
InfoFunction · 0.45
internalHookFunction · 0.45
findHelperFunction · 0.45
forNumericMethod · 0.45
statementMethod · 0.45
protectedParserFunction · 0.45
toFileFunction · 0.45

Calls 1

runtimeErrorMethod · 0.95

Tested by

no test coverage detected