Skip to content

Commit ccdaf8d

Browse files
committed
Analysis.
1 parent 2266334 commit ccdaf8d

File tree

3 files changed

+128
-153
lines changed

3 files changed

+128
-153
lines changed

source_gen/test/builder_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ $dartFormatWidth
246246
logs,
247247
contains(
248248
contains(
249-
'test_lib.foo.dart must be included as a part directive in the input '
249+
'test_lib.foo.dart must be included as a part directive in the '
250250
'library with:\n part \'test_lib.foo.dart\';'),
251251
),
252252
);
@@ -357,8 +357,8 @@ part "a.foo.dart";''',
357357
logs,
358358
contains(
359359
contains(
360-
'test_lib.foo.dart must be included as a part directive in the input '
361-
'library with:\n part \'test_lib.foo.dart\';'),
360+
'test_lib.foo.dart must be included as a part directive in the '
361+
'input library with:\n part \'test_lib.foo.dart\';'),
362362
),
363363
);
364364
});

source_gen/test/external_only_type_checker_test.dart

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ void main() {
4141
},
4242
);
4343

44-
staticNonPublic = thisTest
45-
.findType('NonPublic')!
46-
.instantiate(
47-
typeArguments: const [],
48-
nullabilitySuffix: NullabilitySuffix.none,
49-
);
44+
staticNonPublic = thisTest.findType('NonPublic')!.instantiate(
45+
typeArguments: const [],
46+
nullabilitySuffix: NullabilitySuffix.none,
47+
);
5048
staticNonPublicChecker = TypeChecker.fromStatic(staticNonPublic);
5149
});
5250

@@ -65,8 +63,7 @@ void main() {
6563
expect(
6664
checkNonPublic().isAssignableFromType(staticNonPublic),
6765
isTrue,
68-
reason:
69-
'${checkNonPublic()} is not assignable from '
66+
reason: '${checkNonPublic()} is not assignable from '
7067
'${staticNonPublic.element.name}',
7168
);
7269
});
@@ -91,10 +88,9 @@ void main() {
9188

9289
group('TypeChecker.fromUrl', () {
9390
commonTests(
94-
checkNonPublic:
95-
() => const TypeChecker.fromUrl(
96-
'asset:source_gen/test/external_only_type_checker_test.dart#NonPublic',
97-
),
91+
checkNonPublic: () => const TypeChecker.fromUrl(
92+
'asset:source_gen/test/external_only_type_checker_test.dart#NonPublic',
93+
),
9894
);
9995
});
10096
}

0 commit comments

Comments
 (0)