MCPcopy
hub / github.com/syncthing/syncthing / replace

Function replace

lib/model/testutils_test.go:303–312  ·  view source on GitHub ↗
(t testing.TB, w config.Wrapper, to config.Configuration)

Source from the content-addressed store, hash-verified

301}
302
303func replace(t testing.TB, w config.Wrapper, to config.Configuration) {
304 t.Helper()
305 waiter, err := w.Modify(func(cfg *config.Configuration) {
306 *cfg = to
307 })
308 if err != nil {
309 t.Fatal(err)
310 }
311 waiter.Wait()
312}
313
314func pauseFolder(t testing.TB, w config.Wrapper, id string, paused bool) {
315 t.Helper()

Callers 6

setupROFolderFunction · 0.70
TestIssue4357Function · 0.70
TestPausedFoldersFunction · 0.70
TestIssue4094Function · 0.70
TestIssue4903Function · 0.70

Calls 4

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

Tested by

no test coverage detected