MCPcopy
hub / github.com/syncthing/syncthing / ServeBackground

Method ServeBackground

lib/model/testutils_test.go:176–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176func (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
186func (m *testModel) testCurrentFolderFile(folder string, file string) (protocol.FileInfo, bool) {
187 f, ok, err := m.model.CurrentFolderFile(folder, file)

Callers 15

withConnectionPairFunction · 0.80
setupModelFunction · 0.80
setupROFolderFunction · 0.80
TestDeviceRenameFunction · 0.80
TestClusterConfigFunction · 0.80
TestROScanRecoveryFunction · 0.80
TestRWScanRecoveryFunction · 0.80
TestIssue4357Function · 0.80
TestCustomMarkerNameFunction · 0.80
TestIssue4094Function · 0.80
TestIssue6961Function · 0.80

Calls 1

ServeMethod · 0.45

Tested by

no test coverage detected