Function
setDevice
(t testing.TB, w config.Wrapper, device config.DeviceConfiguration)
Source from the content-addressed store, hash-verified
| 347 | } |
| 348 | |
| 349 | func setDevice(t testing.TB, w config.Wrapper, device config.DeviceConfiguration) { |
| 350 | t.Helper() |
| 351 | waiter, err := w.Modify(func(cfg *config.Configuration) { |
| 352 | cfg.SetDevice(device) |
| 353 | }) |
| 354 | if err != nil { |
| 355 | t.Fatal(err) |
| 356 | } |
| 357 | waiter.Wait() |
| 358 | } |
| 359 | |
| 360 | func addDevice2(t testing.TB, w config.Wrapper, fcfg config.FolderConfiguration) { |
| 361 | waiter, err := w.Modify(func(cfg *config.Configuration) { |
Tested by
no test coverage detected