Documentation ¶
Overview ¶
Package gwtest provides utilities for testing gowid widgets.
Index ¶
- Variables
- func ClearTestApp()
- func ClickAt(x, y int) *tcell.EventMouse
- func ClickUpAt(x, y int) *tcell.EventMouse
- func CursorDown() *tcell.EventKey
- func CursorLeft() *tcell.EventKey
- func CursorRight() *tcell.EventKey
- func CursorUp() *tcell.EventKey
- func KeyEvent(ch rune) *tcell.EventKey
- func NewTestApp() *testApp
- func RenderBoxManyTimes(t *testing.T, w gowid.IWidget, minX, maxX, minY, maxY int)
- func RenderFixedDoesNotPanic(t *testing.T, w gowid.IWidget)
- func RenderFlowManyTimes(t *testing.T, w gowid.IWidget, minX, maxX int)
- type ButtonTester
- type CheckBoxTester
Constants ¶
This section is empty.
Variables ¶
View Source
var D *testApp = NewTestApp()
Functions ¶
func ClearTestApp ¶
func ClearTestApp()
func ClickAt ¶
func ClickAt(x, y int) *tcell.EventMouse
func ClickUpAt ¶
func ClickUpAt(x, y int) *tcell.EventMouse
func CursorDown ¶
func CursorLeft ¶
func CursorRight ¶
func NewTestApp ¶
func NewTestApp() *testApp
func RenderBoxManyTimes ¶
Types ¶
type ButtonTester ¶
type ButtonTester struct {
Gotit bool
}
func (*ButtonTester) Changed ¶
func (f *ButtonTester) Changed(gowid.IApp, gowid.IWidget, ...interface{})
func (*ButtonTester) ID ¶
func (f *ButtonTester) ID() interface{}
type CheckBoxTester ¶
type CheckBoxTester struct {
Gotit bool
}
func (*CheckBoxTester) Changed ¶
func (f *CheckBoxTester) Changed(t gowid.IApp, w gowid.IWidget, data ...interface{})
func (*CheckBoxTester) ID ¶
func (f *CheckBoxTester) ID() interface{}
Click to show internal directories.
Click to hide internal directories.