MCPcopy
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
61func BackupAndRestore(t testing.TB) func() {
62 return BackupAndRestoreWithId(t, "")
63}
64
65func getBackPath(file, id string) string {
66 if strings.Contains(file, "/"+data.GetHishtoryPath()+"/") {

Callers 15

fuzzTestFunction · 0.92
testIntegrationFunction · 0.92
testAdvancedQueryFunction · 0.92
testGenericUpdateFunction · 0.92
testExcludeHiddenCommandFunction · 0.92
testTableDisplayCwdFunction · 0.92

Calls 1

BackupAndRestoreWithIdFunction · 0.85

Tested by 15

fuzzTestFunction · 0.74
testIntegrationFunction · 0.74
testAdvancedQueryFunction · 0.74
testGenericUpdateFunction · 0.74
testExcludeHiddenCommandFunction · 0.74
testTableDisplayCwdFunction · 0.74