Skip to content

Commit

Permalink
[analyzer] add failing test
Browse files Browse the repository at this point in the history
Bug #51087

Change-Id: I9ee382bb5abe05624e7b61783bf4f50214d67ab0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279395
Commit-Queue: Brian Wilkerson <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
  • Loading branch information
asashour authored and Commit Queue committed Jan 23, 2023
1 parent 16453a9 commit 78dacd9
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ part 'part.g.dart';
]);
}

@FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/51087')
test_generated() async {
var package = 'test';
var folder = 'example';
newPubspecYamlFile(testPackageRootPath, 'name: $package');

var testPackageGeneratedPath =
'$testPackageRootPath/.dart_tool/build/generated';
newFile('$testPackageGeneratedPath/$package/$folder/foo.g.dart', '''
part of 'foo.dart';
''');
var path = '$workspaceRootPath/$package/$folder/foo.dart';
newFile(path, '''
part 'foo.g.dart';
''');

await resolveFile2(path);
assertErrorsInResolvedUnit(result, const []);
}

test_partOfName() async {
newFile('$testPackageLibPath/part.dart', '''
part of bar;
Expand Down

0 comments on commit 78dacd9

Please sign in to comment.