MCPcopy
hub / github.com/syncthing/syncthing / newFolderConfig

Function newFolderConfig

lib/model/testutils_test.go:108–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108func newFolderConfig() config.FolderConfiguration {
109 cfg := newFolderConfiguration(defaultCfgWrapper, "default", "default", config.FilesystemTypeFake, rand.String(32)+"?content=true")
110 cfg.FSWatcherEnabled = false
111 cfg.PullerDelayS = 0
112 cfg.Devices = append(cfg.Devices, config.FolderDeviceConfiguration{DeviceID: device1})
113 cfg.BlockIndexing = true
114 return cfg
115}
116
117func setupModelWithConnection(t testing.TB) (*testModel, *fakeConnection, config.FolderConfiguration) {
118 t.Helper()

Callers 5

initFunction · 0.85
newDefaultCfgWrapperFunction · 0.85
setupROFolderFunction · 0.85
TestCustomMarkerNameFunction · 0.85

Calls 2

StringFunction · 0.92
newFolderConfigurationFunction · 0.85

Tested by

no test coverage detected