mirror of https://github.com/mum4k/termdash.git
Moving faketerm to internal.
This commit is contained in:
parent
bf38f10d25
commit
8df9e3307c
|
@ -28,11 +28,11 @@ import (
|
|||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/internal/event"
|
||||
"github.com/mum4k/termdash/internal/event/testevent"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/keyboard"
|
||||
"github.com/mum4k/termdash/internal/mouse"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/widgets/barchart"
|
||||
"github.com/mum4k/termdash/widgets/fakewidget"
|
||||
)
|
||||
|
@ -40,6 +40,9 @@ import (
|
|||
// Example demonstrates how to use the Container API.
|
||||
func Example() {
|
||||
bc, err := barchart.New()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if _, err := New(
|
||||
/* terminal = */ nil,
|
||||
SplitVertical(
|
||||
|
|
|
@ -24,7 +24,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/widgets/fakewidget"
|
||||
)
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/event/testevent"
|
||||
"github.com/mum4k/termdash/internal/mouse"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// pointCase is a test case for the pointCont function.
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestRoot(t *testing.T) {
|
||||
|
|
|
@ -23,7 +23,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func Example_copiedToCanvas() {
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// MustNew returns a new canvas or panics.
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/mum4k/termdash/internal/area"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestNew(t *testing.T) {
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
|
||||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// MustNew returns a new canvas or panics.
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestBorder(t *testing.T) {
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// mustBrailleLine draws the braille line or panics.
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestBrailleFill(t *testing.T) {
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas/braille"
|
||||
"github.com/mum4k/termdash/internal/canvas/braille/testbraille"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestBrailleLine(t *testing.T) {
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestHVLines(t *testing.T) {
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestRectangle(t *testing.T) {
|
||||
|
|
|
@ -25,7 +25,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestHV(t *testing.T) {
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/internal/draw/segdisp/segment"
|
||||
"github.com/mum4k/termdash/internal/draw/segdisp/segment/testsegment"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestDraw(t *testing.T) {
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestTrimText(t *testing.T) {
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/cell"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestVerticalText(t *testing.T) {
|
||||
|
|
|
@ -32,7 +32,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/mouse"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
"github.com/mum4k/termdash/terminal/termbox"
|
||||
"github.com/mum4k/termdash/widgets/barchart"
|
||||
"github.com/mum4k/termdash/widgets/fakewidget"
|
||||
|
|
|
@ -25,7 +25,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestBarChart(t *testing.T) {
|
||||
|
|
|
@ -31,7 +31,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/mouse"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// callbackTracker tracks whether callback was called.
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestDonut(t *testing.T) {
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/mouse"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// keyEvents are keyboard events to send to the widget.
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// percentCall contains arguments for a call to GaugePercent().
|
||||
|
|
|
@ -29,7 +29,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/mouse"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestLineChartDraws(t *testing.T) {
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/draw/segdisp/sixteen/testsixteen"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
// mustDrawChar draws the provided character in the area of the canvas or panics.
|
||||
|
|
|
@ -25,7 +25,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/draw"
|
||||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestSparkLine(t *testing.T) {
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/canvas"
|
||||
"github.com/mum4k/termdash/internal/canvas/testcanvas"
|
||||
"github.com/mum4k/termdash/internal/draw/testdraw"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestLineTrim(t *testing.T) {
|
||||
|
|
|
@ -28,7 +28,7 @@ import (
|
|||
"github.com/mum4k/termdash/internal/mouse"
|
||||
"github.com/mum4k/termdash/internal/terminalapi"
|
||||
"github.com/mum4k/termdash/internal/widgetapi"
|
||||
"github.com/mum4k/termdash/terminal/faketerm"
|
||||
"github.com/mum4k/termdash/internal/faketerm"
|
||||
)
|
||||
|
||||
func TestTextDraws(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue