FeatureSet.forTesting constructor

  1. @visibleForTesting
FeatureSet.forTesting(
  1. {String sdkVersion,
  2. List<Feature> additionalFeatures}
)

Computes a set of features for use in a unit test. Computes the set of features enabled in sdkVersion, plus any specified additionalFeatures.

If sdkVersion is not supplied (or is null), then the current set of enabled features is used as the starting point.

Implementation

@visibleForTesting
factory FeatureSet.forTesting(
        {String sdkVersion, List<Feature> additionalFeatures}) =
    // ignore: invalid_use_of_visible_for_testing_member
    ExperimentStatus.forTesting;