Skip to content

Commit 3c4283e

Browse files
committed
Improved golden tests.
1 parent 4360f55 commit 3c4283e

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

vfs/adiantum/adiantum_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ func Test_fileformat(t *testing.T) {
4242
if version != 0xBADDB {
4343
t.Error(version)
4444
}
45+
46+
_, err = db.Exec(`PRAGMA integrity_check`)
47+
if err != nil {
48+
t.Error(err)
49+
}
4550
}
4651

4752
func Benchmark_nokey(b *testing.B) {

vfs/adiantum/testdata/test.db

4 KB
Binary file not shown.

vfs/xts/aes_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ func Test_fileformat(t *testing.T) {
4242
if version != 0xBADDB {
4343
t.Error(version)
4444
}
45+
46+
_, err = db.Exec(`PRAGMA integrity_check`)
47+
if err != nil {
48+
t.Error(err)
49+
}
4550
}
4651

4752
func Benchmark_nokey(b *testing.B) {

vfs/xts/testdata/test.db

4 KB
Binary file not shown.

0 commit comments

Comments
 (0)