(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestCheckTable(t *testing.T) { |
| 73 | L := NewState() |
| 74 | defer L.Close() |
| 75 | errorIfGFuncNotFail(t, L, func(L *LState) int { |
| 76 | tbl := L.NewTable() |
| 77 | L.Push(tbl) |
| 78 | errorIfNotEqual(t, tbl, L.CheckTable(2)) |
| 79 | L.Push(LNumber(10)) |
| 80 | L.CheckTable(3) |
| 81 | return 0 |
| 82 | }, "table expected, got number") |
| 83 | } |
| 84 | |
| 85 | func TestCheckFunction(t *testing.T) { |
| 86 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…