Moving faketerm to internal.

This commit is contained in:
Jakub Sobon 2019-02-24 01:09:23 -05:00
parent bf38f10d25
commit 8df9e3307c
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
31 changed files with 32 additions and 29 deletions

View File

@ -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(

View File

@ -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"
)

View File

@ -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.

View File

@ -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) {

View File

@ -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() {

View File

@ -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.

View File

@ -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) {

View File

@ -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.

View File

@ -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) {

View File

@ -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.

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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"

View File

@ -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) {

View File

@ -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.

View File

@ -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) {

View File

@ -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.

View File

@ -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().

View File

@ -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) {

View File

@ -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.

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {