MCPcopy
hub / github.com/syncthing/syncthing / TestClusterConfigOnFolderShare

Function TestClusterConfigOnFolderShare

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

Source from the content-addressed store, hash-verified

3555}
3556
3557func TestClusterConfigOnFolderShare(t *testing.T) {
3558 testConfigChangeTriggersClusterConfigs(t, true, true, nil, func(cfg config.Wrapper) {
3559 fcfg := cfg.FolderList()[0]
3560 fcfg.Devices = []config.FolderDeviceConfiguration{{
3561 DeviceID: device2,
3562 IntroducedBy: protocol.EmptyDeviceID,
3563 }}
3564 setFolder(t, cfg, fcfg)
3565 })
3566}
3567
3568func TestClusterConfigOnFolderUnshare(t *testing.T) {
3569 testConfigChangeTriggersClusterConfigs(t, true, false, nil, func(cfg config.Wrapper) {

Callers

nothing calls this directly

Calls 3

setFolderFunction · 0.85
FolderListMethod · 0.65

Tested by

no test coverage detected