forked from TrueCloudLab/restic
Add test and benchmark for Scanner
This commit is contained in:
parent
a5e13f1280
commit
0a164ad5e0
2 changed files with 29 additions and 9 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue