mirror of
https://github.com/restic/restic.git
synced 2025-08-22 21:07:35 +00:00
Add test and benchmark for Scanner
This commit is contained in:
@@ -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