message property
String
get
message
Human-readable summary, shown by the test runner.
Implementation
String get message {
final b = StringBuffer(
'arch_guard found ${failures.length} architecture problem(s):\n',
);
for (final f in failures.take(maxListed)) {
b.writeln(' - $f');
}
if (failures.length > maxListed) {
b.writeln(' … and ${failures.length - maxListed} more');
}
b.write(
'Fix them, or record them as known with '
'`dart run arch_guard --update-baseline`.',
);
return b.toString();
}