MCPcopy
hub / github.com/ddworken/hishtory / captureTerminalOutputWithShellName

Function captureTerminalOutputWithShellName

client/testutils.go:174–180  ·  view source on GitHub ↗
(t testing.TB, tester shellTester, overriddenShellName string, commands []string)

Source from the content-addressed store, hash-verified

172}
173
174func captureTerminalOutputWithShellName(t testing.TB, tester shellTester, overriddenShellName string, commands []string) string {
175 sCommands := make([]TmuxCommand, 0)
176 for _, command := range commands {
177 sCommands = append(sCommands, TmuxCommand{Keys: command})
178 }
179 return captureTerminalOutputWithShellNameAndDimensions(t, tester, overriddenShellName, 200, 50, sCommands)
180}
181
182func captureTerminalOutputWithShellNameAndDimensions(t testing.TB, tester shellTester, overriddenShellName string, width, height int, commands []TmuxCommand) string {
183 return captureTerminalOutputComplex(t,

Callers 6

testInitialHistoryImportFunction · 0.85
TestFishFunction · 0.85
testControlRFunction · 0.85
testTabCompletionFunction · 0.85
TestOfflineClientFunction · 0.85
captureTerminalOutputFunction · 0.85

Tested by 5

testInitialHistoryImportFunction · 0.68
TestFishFunction · 0.68
testControlRFunction · 0.68
testTabCompletionFunction · 0.68
TestOfflineClientFunction · 0.68