MCPcopy
hub / github.com/gdamore/tcell / MustStart

Function MustStart

vt/tests/util.go:84–88  ·  view source on GitHub ↗

MustStart starts the terminal or calls Fatalf.

(t *testing.T, term MockTerm)

Source from the content-addressed store, hash-verified

82
83// MustStart starts the terminal or calls Fatalf.
84func MustStart(t *testing.T, term MockTerm) {
85 t.Helper()
86 err := term.Start()
87 AssertF(t, err == nil, "start failed: %v", err)
88}
89
90// CheckPos is verifies the current cursor position of terminal.
91func CheckPos(t *testing.T, term MockTerm, x Col, y Row) {

Callers 15

TestKeyRepeatFunction · 0.85
TestKeyRepeatDisabledFunction · 0.85
TestKeyRepeatCapsLockFunction · 0.85
TestKeyRepeatNoAltFunction · 0.85
TestKeyRepeatShiftFunction · 0.85
TestKeyRepeatCursorFunction · 0.85
TestKeyWin32Function · 0.85
TestKeyWin32NoRepeatFunction · 0.85
TestKeyWin32RepeatFunction · 0.85
TestKeyWin32NoRepeatModeFunction · 0.85
TestMouse1006Function · 0.85

Calls 2

AssertFFunction · 0.85
StartMethod · 0.65

Tested by 15

TestKeyRepeatFunction · 0.68
TestKeyRepeatDisabledFunction · 0.68
TestKeyRepeatCapsLockFunction · 0.68
TestKeyRepeatNoAltFunction · 0.68
TestKeyRepeatShiftFunction · 0.68
TestKeyRepeatCursorFunction · 0.68
TestKeyWin32Function · 0.68
TestKeyWin32NoRepeatFunction · 0.68
TestKeyWin32RepeatFunction · 0.68
TestKeyWin32NoRepeatModeFunction · 0.68
TestMouse1006Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…