Parcourir la source

Добавление теста ячейке экрана

SVI il y a 3 ans
Parent
commit
b96443b65a
2 fichiers modifiés avec 23 ajouts et 0 suppressions
  1. 1 0
      libtui/v0/line_cell/cell/cell.go
  2. 22 0
      libtui/v0/line_cell/cell/cell_test.go

+ 1 - 0
libtui/v0/line_cell/cell/cell.go

@@ -3,6 +3,7 @@ package cell
 
 import (
 	"github.com/gdamore/tcell"
+	
 	"p78git.ddns.net/svi/libtui/alias"
 	"p78git.ddns.net/svi/libtui/pos"
 	"p78git.ddns.net/svi/libtui/types"

+ 22 - 0
libtui/v0/line_cell/cell/cell_test.go

@@ -0,0 +1,22 @@
+package cell
+
+import "testing"
+
+/*
+	Тест для экранной ячейки
+*/
+
+type tester struct {
+	t *testing.T
+}
+
+func TestCell(t *testing.T) {
+	test := &tester{
+		t: t,
+	}
+	test.create()
+}
+
+func (sf *tester) create() {
+	sf.t.Logf("create")
+}