bubbletea/nil_renderer_test.go

25 lines
418 B
Go
Raw Normal View History

2021-11-01 14:59:59 -04:00
package tea
import "testing"
func TestNilRenderer(t *testing.T) {
r := nilRenderer{}
r.start()
r.stop()
r.kill()
r.write("a")
r.repaint()
2022-10-03 18:04:05 -04:00
r.enterAltScreen()
2021-11-01 14:59:59 -04:00
if r.altScreen() {
t.Errorf("altScreen should always return false")
}
2022-10-08 22:19:04 -04:00
r.exitAltScreen()
r.clearScreen()
r.showCursor()
r.hideCursor()
r.enableMouseCellMotion()
r.disableMouseCellMotion()
r.enableMouseAllMotion()
r.disableMouseAllMotion()
2021-11-01 14:59:59 -04:00
}