MCPcopy
hub / github.com/syncthing/syncthing / testConfig

Function testConfig

lib/scanner/walk_test.go:968–977  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

966}
967
968func 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
979func BenchmarkWalk(b *testing.B) {
980 testFs := fs.NewFilesystem(fs.FilesystemTypeFake, rand.String(32))

Callers 6

TestWalkSubFunction · 0.85
TestWalkFunction · 0.85
walkDirFunction · 0.85
TestStopWalkFunction · 0.85
TestIssue4841Function · 0.85
TestNotExistingErrorFunction · 0.85

Calls 3

NewLoggerFunction · 0.92
newTestFsFunction · 0.85
ServeMethod · 0.45

Tested by

no test coverage detected