Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe committed Feb 6, 2025
1 parent 56a3cf3 commit 51961eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build_resolvers/test/resolver_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,23 @@ int? get x => 1;
);
});
});
test('are only reported if severe', () {
return resolveSources({
'a|errors.dart': '''
/// {@code }
class A{}
''',
}, (resolver) async {
await expectLater(
resolver.libraryFor(AssetId.parse('a|errors.dart')),
completion(isNotNull),
);
await expectLater(
resolver.compilationUnitFor(AssetId.parse('a|errors.dart')),
completion(isNotNull),
);
});
});

test('are reported for part files with errors', () {
return resolveSources({
Expand Down

0 comments on commit 51961eb

Please sign in to comment.