MCPcopy
hub / github.com/syncthing/syncthing / cleanupModel

Function cleanupModel

lib/model/testutils_test.go:198–206  ·  view source on GitHub ↗
(m *testModel)

Source from the content-addressed store, hash-verified

196}
197
198func cleanupModel(m *testModel) {
199 if m.cancel != nil {
200 m.cancel()
201 <-m.stopped
202 }
203 m.evCancel()
204 m.sdb.Close()
205 os.Remove(m.cfg.ConfigPath())
206}
207
208func cleanupModelAndRemoveDir(m *testModel, dir string) {
209 cleanupModel(m)

Callers 15

cleanupModelAndRemoveDirFunction · 0.85
TestRecvOnlyRevertNeedsFunction · 0.85
TestRecvOnlyUndoChangesFunction · 0.85
TestRecvOnlyRevertOwnIDFunction · 0.85
TestRequestFunction · 0.85
BenchmarkRequestOutFunction · 0.85
TestDeviceRenameFunction · 0.85

Calls 3

CloseMethod · 0.65
RemoveMethod · 0.65
ConfigPathMethod · 0.65

Tested by

no test coverage detected