MCPcopy
hub / github.com/syncthing/syncthing / setupModel

Function setupModel

lib/model/testutils_test.go:136–145  ·  view source on GitHub ↗
(t testing.TB, w config.Wrapper)

Source from the content-addressed store, hash-verified

134}
135
136func setupModel(t testing.TB, w config.Wrapper) *testModel {
137 t.Helper()
138 m := newModel(t, w, myID, nil)
139 m.ServeBackground()
140 <-m.started
141
142 m.ScanFolders()
143
144 return m
145}
146
147type testModel struct {
148 *model

Callers 15

setupSendReceiveFolderFunction · 0.85
newStateFunction · 0.85
TestRequestFunction · 0.85
BenchmarkRequestOutFunction · 0.85
TestIgnoresFunction · 0.85
TestEmptyIgnoresFunction · 0.85
TestIssue3028Function · 0.85
TestIssue3804Function · 0.85
TestIssue3829Function · 0.85

Calls 4

newModelFunction · 0.85
HelperMethod · 0.80
ServeBackgroundMethod · 0.80
ScanFoldersMethod · 0.65

Tested by

no test coverage detected