# Packages

Package mocks contains mocks/spies used within SDK unit tests.

# Functions

DataSetToMap converts the data format for Init into a map of maps.
ExpectFlagChangeEvents asserts that a channel receives flag change events for the specified keys (in any order) and then does not receive any more events for the next 100ms.
FlagDescriptor is a shortcut for creating a StoreItemDescriptor from a flag.
NewDataSetBuilder creates a DataSetBuilder.
NewSimpleTestContext returns a basic implementation of interfaces.ClientContext for use in test code.
NewTestContext returns a basic implementation of interfaces.ClientContext for use in test code.
NewTestHook creates a new test hook.
NewTestLoggers returns a standardized logger instance used by unit tests.
NormalizeDataSet sorts the data set by kind and key for test determinacy.
SegmentDescriptor is a shortcut for creating a StoreItemDescriptor from a segment.
TestLoggingConfig returns a LoggingConfiguration corresponding to NewTestLoggers().

# Constants

HookStageAfterEvaluation is the stage executed after evaluation.
HookStageBeforeEvaluation is the stage executed before evaluation.

# Structs

DataSetBuilder is a helper for creating collections of flags and segments.
HookEvalCapture is used to capture the information provided to a hook during execution.
HookExpectedCall represents an expected call to a hook.
TestHook is a hook for testing to be used only by the SDK tests.

# Type aliases

HookStage is the stage of a hook being executed.