MCPcopy
hub / github.com/gdamore/tcell / CheckPos

Function CheckPos

vt/tests/util.go:91–95  ·  view source on GitHub ↗

CheckPos is verifies the current cursor position of terminal.

(t *testing.T, term MockTerm, x Col, y Row)

Source from the content-addressed store, hash-verified

89
90// CheckPos is verifies the current cursor position of terminal.
91func 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.
98func CheckContent(t *testing.T, term MockTerm, x Col, y Row, s string) {

Callers 15

TestDECSTBMv1Function · 0.85
TestDECSTBMv2Function · 0.85
TestDECSTBMv3Function · 0.85
TestDECSTBMv4Function · 0.85
TestDECSLRMv1Function · 0.85
TestRIv1Function · 0.85
TestRIv2Function · 0.85
TestRIv3Function · 0.85
TestRIv4Function · 0.85
TestINDv1Function · 0.85
TestINDv2Function · 0.85
TestINDv3Function · 0.85

Calls 2

VerifyFFunction · 0.85
PosMethod · 0.65

Tested by 15

TestDECSTBMv1Function · 0.68
TestDECSTBMv2Function · 0.68
TestDECSTBMv3Function · 0.68
TestDECSTBMv4Function · 0.68
TestDECSLRMv1Function · 0.68
TestRIv1Function · 0.68
TestRIv2Function · 0.68
TestRIv3Function · 0.68
TestRIv4Function · 0.68
TestINDv1Function · 0.68
TestINDv2Function · 0.68
TestINDv3Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…