(t *testing.T, path, want string)
| 157 | } |
| 158 | |
| 159 | func assertRestoreSQLiteValue(t *testing.T, path, want string) { |
| 160 | t.Helper() |
| 161 | db := openRestoreSQLiteCopy(t, path) |
| 162 | defer db.Close() |
| 163 | var got string |
| 164 | if err := db.QueryRow("SELECT value FROM recovery_probe").Scan(&got); err != nil { |
| 165 | t.Fatal(err) |
| 166 | } |
| 167 | if got != want { |
| 168 | t.Errorf("committed value=%q, want %q", got, want) |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | func executeSQLiteRestore(t *testing.T, backup string) error { |
| 173 | t.Helper() |
no test coverage detected