FakeRemoteConfigClient
class FakeRemoteConfigClient(overrides: Map<ConfigKey, ConfigValue> = emptyMap(), keys: List<ConfigKey>? = null) : RemoteConfigClient
In-memory RemoteConfigClient fake seeded with fixed values, for consumer unit tests.
Parameters
keys
the key registry reported by allValues. Defaults to the seeded keys only; pass the app's full ALL_KEYS to also see un-overridden keys (reported with ValueSource.DEFAULT).
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Replaces the value returned for key; rejects values of the wrong type.
Link copied to clipboard