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

Function errorIfGFuncFail

testutils_test.go:50–54  ·  view source on GitHub ↗
(t *testing.T, L *LState, f LGFunction)

Source from the content-addressed store, hash-verified

48}
49
50func errorIfGFuncFail(t *testing.T, L *LState, f LGFunction) {
51 if err := L.GPCall(f, LNil); err != nil {
52 t.Errorf("%v %v", positionString(1), err.Error())
53 }
54}
55
56func errorIfScriptNotFail(t *testing.T, L *LState, script string, pattern string) {
57 if err := L.DoString(script); err != nil {

Callers 1

TestGetAndReplaceFunction · 0.85

Calls 3

positionStringFunction · 0.85
ErrorMethod · 0.65
GPCallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…