Fake Legacy Feature Flags
In-memory test implementation of FeatureFlags that allows flags to be overridden.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> overrideKey(feature: Feature, key: String, value: T, attributes: Attributes = defaultAttributes)
fun overrideKey(feature: Feature, key: String, value: Boolean, attributes: Attributes = defaultAttributes)
fun overrideKey(feature: Feature, key: String, value: Double, attributes: Attributes = defaultAttributes)
fun overrideKey(feature: Feature, key: String, value: Enum<*>, attributes: Attributes = defaultAttributes)
fun overrideKey(feature: Feature, key: String, value: Int, attributes: Attributes = defaultAttributes)
fun overrideKey(feature: Feature, key: String, value: String, attributes: Attributes = defaultAttributes)
Link copied to clipboard
inline fun <T> overrideKeyJson(feature: Feature, key: String, value: T, attributes: Attributes = defaultAttributes)
Link copied to clipboard
fun overrideKeyJsonString(feature: Feature, key: String, value: String, attributes: Attributes = defaultAttributes)
Link copied to clipboard
open fun trackBoolean(feature: Feature, key: String, executor: Executor, tracker: (Boolean) -> Unit): TrackerReference
open override fun trackBoolean(feature: Feature, executor: Executor, tracker: (Boolean) -> Unit): TrackerReference
open override fun trackBoolean(feature: Feature, key: String, attributes: Attributes, executor: Executor, tracker: (Boolean) -> Unit): TrackerReference
Link copied to clipboard
open fun trackDouble(feature: Feature, key: String, executor: Executor, tracker: (Double) -> Unit): TrackerReference
open override fun trackDouble(feature: Feature, executor: Executor, tracker: (Double) -> Unit): TrackerReference
open override fun trackDouble(feature: Feature, key: String, attributes: Attributes, executor: Executor, tracker: (Double) -> Unit): TrackerReference
Link copied to clipboard
Link copied to clipboard
open fun trackString(feature: Feature, key: String, executor: Executor, tracker: (String) -> Unit): TrackerReference
open override fun trackString(feature: Feature, executor: Executor, tracker: (String) -> Unit): TrackerReference
open override fun trackString(feature: Feature, key: String, attributes: Attributes, executor: Executor, tracker: (String) -> Unit): TrackerReference