Skip to content

Commit 4f11600

Browse files
committed
Add a test.
1 parent 1b600b0 commit 4f11600

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source_gen/test/type_checker_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@ void main() {
208208
);
209209
});
210210

211+
group('isExactly', () {
212+
test('should not crash with null library', () {
213+
final element = core.typeProvider.dynamicType.element!;
214+
expect(element.library, isNull);
215+
expect(checkMapMixin().isExactly(element), isFalse);
216+
});
217+
});
218+
211219
group('isExactlyType', () {
212220
test('should not crash with null element', () {
213221
final voidType = core.typeProvider.voidType;

0 commit comments

Comments
 (0)