(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestProtectedCall(t *testing.T) { |
| 43 | l := NewState() |
| 44 | OpenLibraries(l) |
| 45 | SetDebugHook(l, func(state *State, ar Debug) { |
| 46 | ci := state.callInfo |
| 47 | _ = stack(state.stack[ci.base():state.top]) |
| 48 | _ = ci.code[ci.savedPC].String() |
| 49 | }, MaskCount, 1) |
| 50 | LoadString(l, "assert(not pcall(bit32.band, {}))") |
| 51 | l.Call(0, 0) |
| 52 | } |
| 53 | |
| 54 | func TestLua(t *testing.T) { |
| 55 | tests := []struct { |
nothing calls this directly
no test coverage detected