MCPcopy
hub / github.com/syncthing/syncthing / addFolderDevicesToClusterConfig

Function addFolderDevicesToClusterConfig

lib/model/model_test.go:69–77  ·  view source on GitHub ↗
(cc *protocol.ClusterConfig, remote protocol.DeviceID)

Source from the content-addressed store, hash-verified

67}
68
69func addFolderDevicesToClusterConfig(cc *protocol.ClusterConfig, remote protocol.DeviceID) *protocol.ClusterConfig {
70 for i := range cc.Folders {
71 cc.Folders[i].Devices = []protocol.Device{
72 {ID: myID},
73 {ID: remote},
74 }
75 }
76 return cc
77}
78
79func TestRequest(t *testing.T) {
80 wrapper, fcfg := newDefaultCfgWrapper(t)

Callers 3

createClusterConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected