(t *testing.T, L *LState, f LGFunction)
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 56 | func errorIfScriptNotFail(t *testing.T, L *LState, script string, pattern string) { |
| 57 | if err := L.DoString(script); err != nil { |
no test coverage detected
searching dependent graphs…