Skip to content

Commit

Permalink
[parts] public_member_api_docs test
Browse files Browse the repository at this point in the history
Fixes: dart-lang/linter#5090

Change-Id: I827fa92bfb11a2f8868f7e8268a3432f0af2faee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/383520
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Phil Quitslund <[email protected]>
  • Loading branch information
pq authored and Commit Queue committed Sep 5, 2024
1 parent 67e697f commit 2d93d3d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/linter/test/rules/public_member_api_docs_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,20 @@ mixin M {
}''');
}

test_partFile() async {
newFile('$testPackageRootPath/test/a.dart', r'''
part 'test.dart';
''');

await assertDiagnostics(r'''
part of 'a.dart';
class A { }
''', [
lint(25, 1),
]);
}

/// https://github.com/dart-lang/linter/issues/4526
test_sealedConstructor() async {
await assertDiagnostics(r'''
Expand Down

0 comments on commit 2d93d3d

Please sign in to comment.