Add StarBorder and StarBorder.polygon, with example. (#108489)
This commit is contained in:
@@ -412,7 +412,7 @@ Future<void> verifyGoldenTags(String workingDirectory, { int minimumMatches = 20
|
||||
if (needsTag) {
|
||||
if (!hasTagNotation) {
|
||||
errors.add('${file.path}: Files containing golden tests must be tagged using '
|
||||
'`@Tags(...)` at the top of the file before import statements.');
|
||||
"@Tags(<String>['reduced-test-set']) at the top of the file before import statements.");
|
||||
} else if (!hasReducedTag) {
|
||||
errors.add('${file.path}: Files containing golden tests must be tagged with '
|
||||
"'reduced-test-set'.");
|
||||
|
||||
@@ -74,10 +74,9 @@ void main() {
|
||||
|
||||
test('analyze.dart - verifyGoldenTags', () async {
|
||||
final String result = await capture(() => verifyGoldenTags(testRootPath, minimumMatches: 6), exitCode: 1);
|
||||
const String noTag = 'Files containing golden tests must be '
|
||||
'tagged using `@Tags(...)` at the top of the file before import statements.';
|
||||
const String missingTag = 'Files containing golden tests must be '
|
||||
"tagged with 'reduced-test-set'.";
|
||||
const String noTag = "Files containing golden tests must be tagged using @Tags(<String>['reduced-test-set']) "
|
||||
'at the top of the file before import statements.';
|
||||
const String missingTag = "Files containing golden tests must be tagged with 'reduced-test-set'.";
|
||||
String lines = <String>[
|
||||
'test/analyze-test-input/root/packages/foo/golden_missing_tag.dart: $missingTag',
|
||||
'test/analyze-test-input/root/packages/foo/golden_no_tag.dart: $noTag',
|
||||
|
||||
Reference in New Issue
Block a user