()
| 174 | } |
| 175 | |
| 176 | func (m *testModel) ServeBackground() { |
| 177 | ctx, cancel := context.WithCancel(context.Background()) |
| 178 | m.cancel = cancel |
| 179 | go func() { |
| 180 | m.model.Serve(ctx) |
| 181 | close(m.stopped) |
| 182 | }() |
| 183 | <-m.started |
| 184 | } |
| 185 | |
| 186 | func (m *testModel) testCurrentFolderFile(folder string, file string) (protocol.FileInfo, bool) { |
| 187 | f, ok, err := m.model.CurrentFolderFile(folder, file) |
no test coverage detected