gwtest

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gwtest provides utilities for testing gowid widgets.

Index

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 CursorDown() *tcell.EventKey

func CursorLeft

func CursorLeft() *tcell.EventKey

func CursorRight

func CursorRight() *tcell.EventKey

func CursorUp

func CursorUp() *tcell.EventKey

func KeyEvent

func KeyEvent(ch rune) *tcell.EventKey

func NewTestApp

func NewTestApp() *testApp

func RenderBoxManyTimes

func RenderBoxManyTimes(t *testing.T, w gowid.IWidget, minX, maxX, minY, maxY int)

func RenderFixedDoesNotPanic

func RenderFixedDoesNotPanic(t *testing.T, w gowid.IWidget)

func RenderFlowManyTimes

func RenderFlowManyTimes(t *testing.T, w gowid.IWidget, minX, maxX int)

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL