Add StarBorder and StarBorder.polygon, with example. (#108489)

This commit is contained in:
Greg Spencer
2022-07-27 17:01:05 -07:00
committed by GitHub
parent e79e6d7258
commit 07de84f014
8 changed files with 1912 additions and 6 deletions

View File

@@ -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'.");

View File

@@ -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',