erm/internal/app/darktile/hinters/api_test.go

36 lines
535 B
Go
Raw Normal View History

2021-07-30 22:29:20 +00:00
package hinters
import (
"image"
"github.com/liamg/darktile/internal/app/darktile/termutil"
)
type TestAPI struct {
highlighted string
}
func (a *TestAPI) ShowMessage(_ string) {
}
func (a *TestAPI) Highlight(start termutil.Position, end termutil.Position, label string, img image.Image) {
a.highlighted = label
}
func (a *TestAPI) ClearHighlight() {
a.highlighted = ""
}
func (a *TestAPI) CellSize() image.Point {
return image.Point{}
}
func (a *TestAPI) SetCursorToPointer() {
}
func (a *TestAPI) ResetCursor() {
}