Skip to content

Commit

Permalink
Improved golden tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Oct 17, 2024
1 parent 4360f55 commit 3c4283e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vfs/adiantum/adiantum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ func Test_fileformat(t *testing.T) {
if version != 0xBADDB {
t.Error(version)
}

_, err = db.Exec(`PRAGMA integrity_check`)
if err != nil {
t.Error(err)
}
}

func Benchmark_nokey(b *testing.B) {
Expand Down
Binary file modified vfs/adiantum/testdata/test.db
Binary file not shown.
5 changes: 5 additions & 0 deletions vfs/xts/aes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ func Test_fileformat(t *testing.T) {
if version != 0xBADDB {
t.Error(version)
}

_, err = db.Exec(`PRAGMA integrity_check`)
if err != nil {
t.Error(err)
}
}

func Benchmark_nokey(b *testing.B) {
Expand Down
Binary file modified vfs/xts/testdata/test.db
Binary file not shown.

0 comments on commit 3c4283e

Please sign in to comment.