MCPcopy Index your code
hub / github.com/yuin/gopher-lua / errorIfScriptFail

Function errorIfScriptFail

testutils_test.go:44–48  ·  view source on GitHub ↗
(t *testing.T, L *LState, script string)

Source from the content-addressed store, hash-verified

42}
43
44func errorIfScriptFail(t *testing.T, L *LState, script string) {
45 if err := L.DoString(script); err != nil {
46 t.Errorf("%v %v", positionString(1), err.Error())
47 }
48}
49
50func errorIfGFuncFail(t *testing.T, L *LState, f LGFunction) {
51 if err := L.GPCall(f, LNil); err != nil {

Callers 10

TestSkipOpenLibsFunction · 0.85
TestGetAndReplaceFunction · 0.85
TestCoroutineApi1Function · 0.85
TestChannelMakeFunction · 0.85
TestChannelSelectErrorFunction · 0.85
TestChannelSelect2Function · 0.85
TestChannelSelect3Function · 0.85
TestChannelSelect4Function · 0.85
TestChannelSendReceive1Function · 0.85

Calls 3

positionStringFunction · 0.85
DoStringMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…