(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestCheckChannel(t *testing.T) { |
| 125 | L := NewState() |
| 126 | defer L.Close() |
| 127 | errorIfGFuncNotFail(t, L, func(L *LState) int { |
| 128 | ch := make(chan LValue) |
| 129 | L.Push(LChannel(ch)) |
| 130 | errorIfNotEqual(t, ch, L.CheckChannel(2)) |
| 131 | L.Push(LString("aaa")) |
| 132 | L.CheckChannel(3) |
| 133 | return 0 |
| 134 | }, "channel expected, got string") |
| 135 | } |
| 136 | |
| 137 | func TestCheckType(t *testing.T) { |
| 138 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…