(t testing.TB, w config.Wrapper)
| 122 | } |
| 123 | |
| 124 | func setupModelWithConnectionFromWrapper(t testing.TB, w config.Wrapper) (*testModel, *fakeConnection) { |
| 125 | t.Helper() |
| 126 | m := setupModel(t, w) |
| 127 | |
| 128 | fc := addFakeConn(m, device1, "default") |
| 129 | fc.folder = "default" |
| 130 | |
| 131 | _ = m.ScanFolder("default") |
| 132 | |
| 133 | return m, fc |
| 134 | } |
| 135 | |
| 136 | func setupModel(t testing.TB, w config.Wrapper) *testModel { |
| 137 | t.Helper() |
no test coverage detected