(t *testing.T)
| 109 | } |
| 110 | |
| 111 | func TestCheckThread(t *testing.T) { |
| 112 | L := NewState() |
| 113 | defer L.Close() |
| 114 | errorIfGFuncNotFail(t, L, func(L *LState) int { |
| 115 | th, _ := L.NewThread() |
| 116 | L.Push(th) |
| 117 | errorIfNotEqual(t, th, L.CheckThread(2)) |
| 118 | L.Push(LNumber(10)) |
| 119 | L.CheckThread(3) |
| 120 | return 0 |
| 121 | }, "thread expected, got number") |
| 122 | } |
| 123 | |
| 124 | func TestCheckChannel(t *testing.T) { |
| 125 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…