Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ddworken/hishtory
/ BackupAndRestore
Function
BackupAndRestore
shared/testutils/testutils.go:61–63 ·
view source on GitHub ↗
(t testing.TB)
Source
from the content-addressed store, hash-verified
59
}
60
61
func
BackupAndRestore(t testing.TB)
func
() {
62
return
BackupAndRestoreWithId(t,
""
)
63
}
64
65
func
getBackPath(file, id string) string {
66
if
strings.Contains(file,
"/"
+data.GetHishtoryPath()+
"/"
) {
Callers
15
fuzzTest
Function · 0.92
testIntegration
Function · 0.92
testIntegrationWithNewDevice
Function · 0.92
testAdvancedQuery
Function · 0.92
testGenericUpdate
Function · 0.92
testRepeatedCommandThenQuery
Function · 0.92
testRepeatedCommandAndQuery
Function · 0.92
testRepeatedEnableDisable
Function · 0.92
testExcludeHiddenCommand
Function · 0.92
testTimestampsAreReasonablyCorrect
Function · 0.92
testTableDisplayCwd
Function · 0.92
testHishtoryBackgroundSaving
Function · 0.92
Calls
1
BackupAndRestoreWithId
Function · 0.85
Tested by
15
fuzzTest
Function · 0.74
testIntegration
Function · 0.74
testIntegrationWithNewDevice
Function · 0.74
testAdvancedQuery
Function · 0.74
testGenericUpdate
Function · 0.74
testRepeatedCommandThenQuery
Function · 0.74
testRepeatedCommandAndQuery
Function · 0.74
testRepeatedEnableDisable
Function · 0.74
testExcludeHiddenCommand
Function · 0.74
testTimestampsAreReasonablyCorrect
Function · 0.74
testTableDisplayCwd
Function · 0.74
testHishtoryBackgroundSaving
Function · 0.74