MCPcopy Create free account
hub / github.com/atomicgo/cursor / TestHeightChanges

Function TestHeightChanges

cursor_test.go:8–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestHeightChanges(t *testing.T) {
9 for i := 0; i < 4; i++ {
10 fmt.Println()
11 }
12 Up(3)
13
14 if autoheight != 3 {
15 t.Errorf("height should be 3 but is %d", autoheight)
16 }
17
18 Down(3)
19
20 if autoheight != 0 {
21 t.Errorf("height should be 0 but is %d", autoheight)
22 }
23}
24
25func TestHeightCannotBeNegative(t *testing.T) {
26 Down(10)

Callers

nothing calls this directly

Calls 2

UpFunction · 0.85
DownFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…