MCPcopy
hub / github.com/syncthing/syncthing / TestClusterConfigOnFolderAdd

Function TestClusterConfigOnFolderAdd

lib/model/model_test.go:3544–3555  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3542}
3543
3544func TestClusterConfigOnFolderAdd(t *testing.T) {
3545 testConfigChangeTriggersClusterConfigs(t, false, true, nil, func(wrapper config.Wrapper) {
3546 fcfg := newFolderConfig()
3547 fcfg.ID = "second"
3548 fcfg.Label = "second"
3549 fcfg.Devices = []config.FolderDeviceConfiguration{{
3550 DeviceID: device2,
3551 IntroducedBy: protocol.EmptyDeviceID,
3552 }}
3553 setFolder(t, wrapper, fcfg)
3554 })
3555}
3556
3557func TestClusterConfigOnFolderShare(t *testing.T) {
3558 testConfigChangeTriggersClusterConfigs(t, true, true, nil, func(cfg config.Wrapper) {

Callers

nothing calls this directly

Calls 3

newFolderConfigFunction · 0.85
setFolderFunction · 0.85

Tested by

no test coverage detected