FakeRadioConfigRepository
A test double for RadioConfigRepository backed by in-memory kotlinx.coroutines.flow.MutableStateFlows.
All mutator methods update the underlying state flows synchronously so tests can observe changes immediately. deviceProfileFlow is derived from localConfigFlow, moduleConfigFlow, and the current channel set.
Properties
Last Config passed to setLocalConfig (null until called). Tests should use setLocalConfigDirect to drive state.
Last ModuleConfig passed to setLocalModuleConfig (null until called).
Functions
Directly sets the ChannelSet (bypasses updateChannelSettings/replaceAllSettings).
Directly sets the combined DeviceProfile emitted by deviceProfileFlow.
Directly sets the LocalConfig without merging (preferred for test setup).
Directly sets the LocalModuleConfig without merging (preferred for test setup).