MCPcopy
hub / github.com/syncthing/syncthing / setupModelWithConnectionFromWrapper

Function setupModelWithConnectionFromWrapper

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

Source from the content-addressed store, hash-verified

122}
123
124func 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
136func setupModel(t testing.TB, w config.Wrapper) *testModel {
137 t.Helper()

Callers 2

setupModelWithConnectionFunction · 0.85
TestRequestLimitFunction · 0.85

Calls 4

setupModelFunction · 0.85
addFakeConnFunction · 0.85
HelperMethod · 0.80
ScanFolderMethod · 0.65

Tested by

no test coverage detected