MCPcopy
hub / github.com/yorukot/superfile / NewTestTeaProgWithEventLoop

Function NewTestTeaProgWithEventLoop

src/internal/test_utils_teaprog.go:24–34  ·  view source on GitHub ↗
(t *testing.T, m *model)

Source from the content-addressed store, hash-verified

22}
23
24func NewTestTeaProgWithEventLoop(t *testing.T, m *model) *TeaProg {
25 p := &TeaProg{m: m, prog: tea.NewProgram(m,
26 tea.WithInput(nil), tea.WithOutput(IgnorerWriter{}),
27 tea.WithWindowSize(DefaultTestModelWidth, DefaultTestModelHeight))}
28 p.StartEventLoop()
29
30 t.Cleanup(func() {
31 p.Close()
32 })
33 return p
34}
35
36func NewTestTeaProgWithEventLoopWithWinSize(t *testing.T, m *model, width int, height int) *TeaProg {
37 p := &TeaProg{m: m, prog: tea.NewProgram(m,

Callers 8

TestCopyFunction · 0.85
TestFileRenameFunction · 0.85
TestFileDeleteFunction · 0.85
TestPasteItemFunction · 0.85
setupProgWithZoxideFunction · 0.85
TestFilePanelNavigationFunction · 0.85

Calls 2

StartEventLoopMethod · 0.95
CloseMethod · 0.95

Tested by 8

TestCopyFunction · 0.68
TestFileRenameFunction · 0.68
TestFileDeleteFunction · 0.68
TestPasteItemFunction · 0.68
setupProgWithZoxideFunction · 0.68
TestFilePanelNavigationFunction · 0.68