MCPcopy
hub / github.com/syncthing/syncthing / setupModelWithConnection

Function setupModelWithConnection

lib/model/testutils_test.go:117–122  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

115}
116
117func setupModelWithConnection(t testing.TB) (*testModel, *fakeConnection, config.FolderConfiguration) {
118 t.Helper()
119 w, fcfg := newDefaultCfgWrapper(t)
120 m, fc := setupModelWithConnectionFromWrapper(t, w)
121 return m, fc, fcfg
122}
123
124func setupModelWithConnectionFromWrapper(t testing.TB, w config.Wrapper) (*testModel, *fakeConnection) {
125 t.Helper()

Callers 15

benchmarkIndexFunction · 0.85
benchmarkIndexUpdateFunction · 0.85
TestGlobalDirectoryTreeFunction · 0.85
benchmarkTreeFunction · 0.85
TestRemoveDirWithContentFunction · 0.85
TestIssue4475Function · 0.85
TestDevicePauseFunction · 0.85
TestDeviceWasSeenFunction · 0.85
TestRequestSimpleFunction · 0.85
TestSymlinkTraversalReadFunction · 0.85

Calls 3

newDefaultCfgWrapperFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected