MCPcopy
hub / github.com/syncthing/syncthing / setFolder

Function setFolder

lib/model/testutils_test.go:326–335  ·  view source on GitHub ↗
(t testing.TB, w config.Wrapper, fcfg config.FolderConfiguration)

Source from the content-addressed store, hash-verified

324}
325
326func setFolder(t testing.TB, w config.Wrapper, fcfg config.FolderConfiguration) {
327 t.Helper()
328 waiter, err := w.Modify(func(cfg *config.Configuration) {
329 cfg.SetFolder(fcfg)
330 })
331 if err != nil {
332 t.Fatal(err)
333 }
334 waiter.Wait()
335}
336
337func pauseDevice(t testing.TB, w config.Wrapper, id protocol.DeviceID, paused bool) {
338 t.Helper()

Callers 9

TestFolderRestartZombiesFunction · 0.85
TestModTimeWindowFunction · 0.85
deletedNotLocallyChangedFunction · 0.85
pullInvalidIgnoredFunction · 0.85

Calls 5

HelperMethod · 0.80
SetFolderMethod · 0.80
FatalMethod · 0.80
ModifyMethod · 0.65
WaitMethod · 0.65

Tested by

no test coverage detected