MCPcopy
hub / github.com/syncthing/syncthing / newConfigWrapper

Function newConfigWrapper

lib/model/testutils_test.go:87–89  ·  view source on GitHub ↗
(cfg config.Configuration)

Source from the content-addressed store, hash-verified

85}
86
87func newConfigWrapper(cfg config.Configuration) (config.Wrapper, context.CancelFunc) {
88 return newConfigWrapperFromContext(context.Background(), cfg)
89}
90
91func newDefaultCfgWrapper(t testing.TB) (config.Wrapper, config.FolderConfiguration) {
92 w, cancel := newConfigWrapperFromContext(t.Context(), defaultCfgWrapper.RawCopy())

Callers 15

initFunction · 0.85
setupROFolderFunction · 0.85
TestProgressEmitterFunction · 0.85
newStateFunction · 0.85
TestDeviceRenameFunction · 0.85
TestClusterConfigFunction · 0.85
TestIgnoresFunction · 0.85
TestEmptyIgnoresFunction · 0.85
TestROScanRecoveryFunction · 0.85

Calls 1

Tested by

no test coverage detected