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

Function TestBashOrderingBug

client/integration_test.go:3245–3255  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3243}
3244
3245func TestBashOrderingBug(t *testing.T) {
3246 markTestForSharding(t, 15)
3247 defer testutils.BackupAndRestore(t)()
3248 tester := bashTester{}
3249 installHishtory(t, tester, "")
3250
3251 // Trigger a set of steps that cause a weird bug with bash as reported in github.com/ddworken/hishtory/issues/215
3252 captureTerminalOutput(t, tester, []string{"command1 Enter", "command2 Enter", "C-R", "C-C", "command3 Enter", "command4 Enter"})
3253 out := tester.RunInteractiveShell(t, `hishtory export | grep -v pipefail | grep -v '/tmp/client install'`)
3254 testutils.CompareGoldens(t, out, "TestBashOrderingBug-Export")
3255}
3256
3257func TestChangeSyncingStatus(t *testing.T) {
3258 markTestForSharding(t, 15)

Callers

nothing calls this directly

Calls 6

RunInteractiveShellMethod · 0.95
BackupAndRestoreFunction · 0.92
CompareGoldensFunction · 0.92
markTestForShardingFunction · 0.85
installHishtoryFunction · 0.85
captureTerminalOutputFunction · 0.85

Tested by

no test coverage detected