in lib/src/custom_matcher.dart [72:97]
Description describeMismatch(Object? item, Description mismatchDescription,
Map matchState, bool verbose) {
if (matchState['custom.exception'] != null) {
mismatchDescription
.add('threw ')
.addDescriptionOf(matchState['custom.exception'])
.add('\n')
.add(matchState['custom.stack'].toString());
return mismatchDescription;
}
mismatchDescription
.add('has ')
.add(_featureName)
.add(' with value ')
.addDescriptionOf(matchState['custom.feature']);
var innerDescription = StringDescription();
_matcher.describeMismatch(matchState['custom.feature'], innerDescription,
matchState['state'] as Map, verbose);
if (innerDescription.length > 0) {
mismatchDescription.add(' which ').add(innerDescription.toString());
}
return mismatchDescription;
}