(t testing.TB, w config.Wrapper, id string, paused bool)
| 312 | } |
| 313 | |
| 314 | func pauseFolder(t testing.TB, w config.Wrapper, id string, paused bool) { |
| 315 | t.Helper() |
| 316 | waiter, err := w.Modify(func(cfg *config.Configuration) { |
| 317 | _, i, _ := cfg.Folder(id) |
| 318 | cfg.Folders[i].Paused = paused |
| 319 | }) |
| 320 | if err != nil { |
| 321 | t.Fatal(err) |
| 322 | } |
| 323 | waiter.Wait() |
| 324 | } |
| 325 | |
| 326 | func setFolder(t testing.TB, w config.Wrapper, fcfg config.FolderConfiguration) { |
| 327 | t.Helper() |
no test coverage detected