std.unittest.common Package

Function Description

unittest.common provides the types and common methods required for printing in the unit test framework.

API List

Function

NameDescription
toStringOrPlaceholder<T>(T)Converts a parameter that implements ToString to a string.

Interface

NameDescription
DataProviderSpecifies a component of DataStrategy, which is used to provide test data. T specifies the data type provided by the provider.
DataShrinkerSpecifies a component of DataStrategy, which is used to shrink data during testing. T specifies the type of data handled by the shrinker.
DataStrategyProvides the data strategy for parameterized tests. T specifies the data type operated on by the strategy.
PrettyPrintableProvides stronger capabilities of handling colors and indentation formats during printing for types that implement this interface.

Class

NameDescription
ConfigurationSpecifies an object for storing the unittest configuration data generated by the @Configure macro. It is a class similar to HashMap, but its keys are not of a key or value type, but of a String type and its values can be of any given type.
ConfigurationKeySpecifies a key value object of a configuration item. Provides the equality comparison and hashCode methods.
PrettyPrinterSpecifies a printer with color, alignment, and indentation controls.
PrettyTextSpecifies a constructor-like class for storing the printed output.

Enumeration

NameDescription
ColorSpecifies the color.