mirror of
https://github.com/restic/restic.git
synced 2026-11-10 08:41:00 +00:00
Add test and benchmark for Scanner
This commit is contained in:
1 parent
a5e13f1280
commit
0a164ad5e0
2 files changed
+29
-9
No files matched your search
@@ -121,15 +121,6 @@ func BenchmarkChunkEncryptParallel(b *testing.B) {
|
||||
})
|
||||
}
|
||||
|
||||
func BenchmarkScanner(b *testing.B) {
|
||||
if *benchArchiveDirectory == "" {
|
||||
b.Skip("benchdir not set, skipping BenchmarkScanner")
|
||||
}
|
||||
|
||||
_, err := restic.NewScanner(nil).Scan(*benchArchiveDirectory)
|
||||
ok(b, err)
|
||||
}
|
||||
|
||||
func BenchmarkArchiveDirectory(b *testing.B) {
|
||||
if *benchArchiveDirectory == "" {
|
||||
b.Skip("benchdir not set, skipping BenchmarkArchiveDirectory")
|
||||
|
||||
Reference in new issue
Block a user