()
| 966 | } |
| 967 | |
| 968 | func testConfig() (Config, context.CancelFunc) { |
| 969 | evLogger := events.NewLogger() |
| 970 | ctx, cancel := context.WithCancel(context.Background()) |
| 971 | go evLogger.Serve(ctx) |
| 972 | return Config{ |
| 973 | Filesystem: newTestFs(), |
| 974 | Hashers: 2, |
| 975 | EventLogger: evLogger, |
| 976 | }, cancel |
| 977 | } |
| 978 | |
| 979 | func BenchmarkWalk(b *testing.B) { |
| 980 | testFs := fs.NewFilesystem(fs.FilesystemTypeFake, rand.String(32)) |
no test coverage detected