@@ -3583,8 +3583,7 @@ void main() {
3583
3583
expect (mocksContent, contains ('implements _i2.Baz' ));
3584
3584
});
3585
3585
3586
- test ('when its a type parameter of function which returns another type' ,
3587
- () async {
3586
+ test ('when it\' s a function which returns any type' , () async {
3588
3587
final mocksContent = await buildWithNonNullable ({
3589
3588
...annotationsAsset,
3590
3589
'foo|lib/foo.dart' : dedent (r'''
@@ -3612,14 +3611,15 @@ void main() {
3612
3611
expect (mocksContent, contains ('class MockFoo extends _i1.Mock' ));
3613
3612
expect (mocksContent, contains ('implements _i2.Foo' ));
3614
3613
});
3615
- test ('when its a duplicate type parameter' , () async {
3614
+ test ('when the underlying type is identical to another type alias' ,
3615
+ () async {
3616
3616
final mocksContent = await buildWithNonNullable ({
3617
3617
...annotationsAsset,
3618
3618
'foo|lib/foo.dart' : dedent (r'''
3619
3619
class Bar {}
3620
3620
typedef BarDef = int Function();
3621
3621
typedef BarDef2 = int Function();
3622
- class BaseFoo<T,P> {
3622
+ class BaseFoo<T, P> {
3623
3623
BaseFoo(this.t1, this.t2);
3624
3624
final T t1;
3625
3625
final P t2;
@@ -3707,7 +3707,7 @@ void main() {
3707
3707
contains ('returnValue: _i3.Future<(int, {_i2.Bar bar})>.value(' ),
3708
3708
contains ('bar: _FakeBar_0(' ))));
3709
3709
});
3710
- test ('are supported as typedefs ' , () async {
3710
+ test ('are supported as type arguments ' , () async {
3711
3711
final mocksContent = await buildWithNonNullable ({
3712
3712
...annotationsAsset,
3713
3713
'foo|lib/foo.dart' : dedent (r'''
@@ -3731,7 +3731,7 @@ void main() {
3731
3731
expect (mocksContent, contains ('class MockFoo extends _i1.Mock' ));
3732
3732
expect (mocksContent, contains ('implements _i2.Foo' ));
3733
3733
});
3734
- test ('are supported as nested typedefs ' , () async {
3734
+ test ('are supported as nested type arguments ' , () async {
3735
3735
final mocksContent = await buildWithNonNullable ({
3736
3736
...annotationsAsset,
3737
3737
'foo|lib/foo.dart' : dedent (r'''
0 commit comments