Add test and benchmark for Scanner

This commit is contained in:
Alexander Neumann 2015-02-16 23:13:23 +01:00
parent a5e13f1280
commit 0a164ad5e0
2 changed files with 29 additions and 9 deletions

View file

@ -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")