CheckPos is verifies the current cursor position of terminal.
(t *testing.T, term MockTerm, x Col, y Row)
| 89 | |
| 90 | // CheckPos is verifies the current cursor position of terminal. |
| 91 | func CheckPos(t *testing.T, term MockTerm, x Col, y Row) { |
| 92 | t.Helper() |
| 93 | VerifyF(t, term.Pos().X == x && term.Pos().Y == y, |
| 94 | "bad position %d,%d (expected %d,%d)", term.Pos().X, term.Pos().Y, x, y) |
| 95 | } |
| 96 | |
| 97 | // CheckContent verifies the content at a given cell of the terminal. |
| 98 | func CheckContent(t *testing.T, term MockTerm, x Col, y Row, s string) { |
searching dependent graphs…