(t testing.TB, cfg config.Configuration)
| 42 | ) |
| 43 | |
| 44 | func newState(t testing.TB, cfg config.Configuration) (*testModel, context.CancelFunc) { |
| 45 | wcfg, cancel := newConfigWrapper(cfg) |
| 46 | |
| 47 | m := setupModel(t, wcfg) |
| 48 | |
| 49 | for _, dev := range cfg.Devices { |
| 50 | m.AddConnection(newFakeConnection(dev.DeviceID, m), protocol.Hello{}) |
| 51 | } |
| 52 | |
| 53 | return m, cancel |
| 54 | } |
| 55 | |
| 56 | func createClusterConfig(remote protocol.DeviceID, ids ...string) *protocol.ClusterConfig { |
| 57 | cc := &protocol.ClusterConfig{ |
no test coverage detected