test_track_test_support library

Classes

AppVersionBuildFactory
Produces AppVersionBuilds to be used for testing
AppVisitorConfigFactory
Produces AppVisitorConfigs to be used for testing
AssignmentFactory
Produces Assignments to be used for testing
FakeAnalyticsProvider
A fake AnalyticsProvider whose state is populated when Assignments are tracked via trackAssignment and when Visitor ids are identified via identify
FakeDataStorageProvider
A fake implementation of DataStorageProvider that maintains a Visitor and SplitRegistry in-memory.
FakeTestTrack
A fake TestTrack that offers sane default functionality but allows for passing in behavior for the core functions such as Ab and Vary operations.
FakeTestTrackLogger
A fake TestTrackLogger that internally tracks LogEvents
LogEvent
A representation of an invocation to one of the logging functions on a TestTrackLogger, used by FakeTestTrackLogger
Pair<T1, T2>
A simple Pair implementation because that's not a thing in the dart language
SplitFactory
Produces Splits to be used for testing
SplitRegistryFactory
Produces SplitRegistrys to be used for testing
VariantFactory
Produces Variants to be used for testing
VisitorFactory
Produces Visitors to be used for testing

Extensions

AssignmentExtensions on Assignment
Supported modifications for Assignments
SplitExtensions on Split
Supported modifications for Splits
SplitRegistryExtensions on SplitRegistry
Supported modifications for SplitRegistrys
VariantExtensions on Variant
Supported modifications for Variants
VisitorExtensions on Visitor
Supported modifications for Visitors

Typedefs

Ab = bool Function(String splitName, String context, String? trueVariant)
A function representing the invocation of an ab
Vary = String Function(String splitName, String defaultVariant, String context)
A function representing the invocation of a vary