working integration tests

This commit is contained in:
David Dworken
2022-01-09 14:34:59 -08:00
parent 3d450a1175
commit 9b144e7f31
8 changed files with 150 additions and 23 deletions

View File

@ -13,6 +13,12 @@ func Check(t *testing.T, err error) {
}
}
func CheckWithInfo(t *testing.T, err error, additionalInfo string) {
if err != nil {
t.Fatalf("Unexpected error: %v! Additional info: %v", err, additionalInfo)
}
}
func BackupAndRestore(t *testing.T) func() {
homedir, err := os.UserHomeDir()
if err != nil {