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

Method RunInteractiveShell

client/testutils.go:77–81  ·  view source on GitHub ↗
(t testing.TB, script string)

Source from the content-addressed store, hash-verified

75type zshTester struct{}
76
77func (z zshTester) RunInteractiveShell(t testing.TB, script string) string {
78 res, err := z.RunInteractiveShellRelaxed(t, "set -eo pipefail\n"+script)
79 require.NoError(t, err)
80 return res
81}
82
83func (z zshTester) RunInteractiveShellRelaxed(t testing.TB, script string) (string, error) {
84 cmd := exec.Command("zsh", "-is")

Callers 15

TestTimestampFormatFunction · 0.95
TestZDotDirFunction · 0.95
TestRemoveDuplicateRowsFunction · 0.95
TestWebUiFunction · 0.95
TestForceInitFunction · 0.95
TestChangeSyncingStatusFunction · 0.95
TestConfigLogLevelFunction · 0.95
TestStatusFullConfigFunction · 0.95

Calls 1

Tested by 15

TestTimestampFormatFunction · 0.76
TestZDotDirFunction · 0.76
TestRemoveDuplicateRowsFunction · 0.76
TestWebUiFunction · 0.76
TestForceInitFunction · 0.76
TestChangeSyncingStatusFunction · 0.76
TestConfigLogLevelFunction · 0.76
TestStatusFullConfigFunction · 0.76