MCPcopy Index your code
hub / github.com/syncthing/syncthing / newDeviceConfiguration

Function newDeviceConfiguration

lib/model/testutils_test.go:296–301  ·  view source on GitHub ↗
(defaultCfg config.DeviceConfiguration, id protocol.DeviceID, name string)

Source from the content-addressed store, hash-verified

294}
295
296func newDeviceConfiguration(defaultCfg config.DeviceConfiguration, id protocol.DeviceID, name string) config.DeviceConfiguration {
297 cfg := defaultCfg.Copy()
298 cfg.DeviceID = id
299 cfg.Name = name
300 return cfg
301}
302
303func replace(t testing.TB, w config.Wrapper, to config.Configuration) {
304 t.Helper()

Callers 5

initFunction · 0.70
addDevice2Function · 0.70
TestIssue6961Function · 0.70

Calls 1

CopyMethod · 0.45

Tested by

no test coverage detected