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

Function CheckContent

vt/tests/util.go:98–103  ·  view source on GitHub ↗

CheckContent verifies the content at a given cell of the terminal.

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

Source from the content-addressed store, hash-verified

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) {
99 t.Helper()
100 if actual := string(term.GetCell(Coord{X: x, Y: y}).C); actual != s {
101 t.Errorf("bad content %d,%d (expected %q got %q)", x, y, s, actual)
102 }
103}
104
105// CheckAttrs verifies the attributes of a given cell.
106func CheckAttrs(t *testing.T, term MockTerm, x Col, y Row, a Attr) {

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 1

GetCellMethod · 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…