Dart API ReferenceunittestDescription

Description Interface

Matchers build up their error messages by appending to Description objects. This interface is implemented by StringDescription. This interface is unlikely to need other implementations, but could be useful to replace in some cases - e.g. language conversion.

Implemented by

StringDescription

Methods

Code Description add(String text) #

This is used to add arbitrary text to the description.

Description add(String text);

Code Description addAll(String start, String separator, String end, Iterable list) #

This is used to add a description of an [Iterable] [list], with appropriate start and end markers and inter-element separator.

Description addAll(String start, String separator, String end,
                     Iterable list);

Code Description addDescriptionOf(value) #

This is used to add a meaningful description of a value.

Description addDescriptionOf(value);

Code Description replace(String text) #

Change the value of the description.

Description replace(String text);