From 2cc4176582f80437d1052b4c3b418baef84f51a1 Mon Sep 17 00:00:00 2001 From: Ratakondala Arun Date: Fri, 23 Sep 2022 22:37:07 +0530 Subject: [PATCH] test(mocks): rebuild test mocks --- test/abs/icon_generator_test.mocks.dart | 104 +++++---- .../macos_icon_generator_test.mocks.dart | 200 ++++++++++++------ .../windows_icon_generator_test.mocks.dart | 183 ++++++++++------ 3 files changed, 318 insertions(+), 169 deletions(-) diff --git a/test/abs/icon_generator_test.mocks.dart b/test/abs/icon_generator_test.mocks.dart index df330e0ce8..8b26393b81 100644 --- a/test/abs/icon_generator_test.mocks.dart +++ b/test/abs/icon_generator_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.3.2 from annotations // in flutter_launcher_icons/test/abs/icon_generator_test.dart. // Do not manually edit this file. @@ -21,8 +21,13 @@ import 'package:mockito/mockito.dart' as _i1; class _FakeIconGeneratorContext_0 extends _i1.SmartFake implements _i2.IconGeneratorContext { - _FakeIconGeneratorContext_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeIconGeneratorContext_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [FlutterLauncherIconsConfig]. @@ -35,37 +40,48 @@ class MockFlutterLauncherIconsConfig extends _i1.Mock } @override - int get minSdkAndroid => - (super.noSuchMethod(Invocation.getter(#minSdkAndroid), returnValue: 0) - as int); + int get minSdkAndroid => (super.noSuchMethod( + Invocation.getter(#minSdkAndroid), + returnValue: 0, + ) as int); @override - bool get removeAlphaIOS => (super - .noSuchMethod(Invocation.getter(#removeAlphaIOS), returnValue: false) - as bool); + bool get removeAlphaIOS => (super.noSuchMethod( + Invocation.getter(#removeAlphaIOS), + returnValue: false, + ) as bool); @override - bool get hasAndroidAdaptiveConfig => - (super.noSuchMethod(Invocation.getter(#hasAndroidAdaptiveConfig), - returnValue: false) as bool); + bool get hasAndroidAdaptiveConfig => (super.noSuchMethod( + Invocation.getter(#hasAndroidAdaptiveConfig), + returnValue: false, + ) as bool); @override - bool get hasPlatformConfig => - (super.noSuchMethod(Invocation.getter(#hasPlatformConfig), - returnValue: false) as bool); + bool get hasPlatformConfig => (super.noSuchMethod( + Invocation.getter(#hasPlatformConfig), + returnValue: false, + ) as bool); @override - bool get isCustomAndroidFile => - (super.noSuchMethod(Invocation.getter(#isCustomAndroidFile), - returnValue: false) as bool); + bool get isCustomAndroidFile => (super.noSuchMethod( + Invocation.getter(#isCustomAndroidFile), + returnValue: false, + ) as bool); @override - bool get isNeedingNewAndroidIcon => - (super.noSuchMethod(Invocation.getter(#isNeedingNewAndroidIcon), - returnValue: false) as bool); + bool get isNeedingNewAndroidIcon => (super.noSuchMethod( + Invocation.getter(#isNeedingNewAndroidIcon), + returnValue: false, + ) as bool); @override - bool get isNeedingNewIOSIcon => - (super.noSuchMethod(Invocation.getter(#isNeedingNewIOSIcon), - returnValue: false) as bool); + bool get isNeedingNewIOSIcon => (super.noSuchMethod( + Invocation.getter(#isNeedingNewIOSIcon), + returnValue: false, + ) as bool); @override - Map toJson() => - (super.noSuchMethod(Invocation.method(#toJson, []), - returnValue: {}) as Map); + Map toJson() => (super.noSuchMethod( + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + ) as Map); } /// A class which mocks [IconGenerator]. @@ -78,19 +94,31 @@ class MockIconGenerator extends _i1.Mock implements _i2.IconGenerator { @override _i2.IconGeneratorContext get context => (super.noSuchMethod( + Invocation.getter(#context), + returnValue: _FakeIconGeneratorContext_0( + this, Invocation.getter(#context), - returnValue: - _FakeIconGeneratorContext_0(this, Invocation.getter(#context))) - as _i2.IconGeneratorContext); + ), + ) as _i2.IconGeneratorContext); @override - String get platformName => - (super.noSuchMethod(Invocation.getter(#platformName), returnValue: '') - as String); + String get platformName => (super.noSuchMethod( + Invocation.getter(#platformName), + returnValue: '', + ) as String); @override - void createIcons() => super.noSuchMethod(Invocation.method(#createIcons, []), - returnValueForMissingStub: null); + void createIcons() => super.noSuchMethod( + Invocation.method( + #createIcons, + [], + ), + returnValueForMissingStub: null, + ); @override - bool validateRequirements() => - (super.noSuchMethod(Invocation.method(#validateRequirements, []), - returnValue: false) as bool); + bool validateRequirements() => (super.noSuchMethod( + Invocation.method( + #validateRequirements, + [], + ), + returnValue: false, + ) as bool); } diff --git a/test/macos/macos_icon_generator_test.mocks.dart b/test/macos/macos_icon_generator_test.mocks.dart index cb3613de09..1039287ade 100644 --- a/test/macos/macos_icon_generator_test.mocks.dart +++ b/test/macos/macos_icon_generator_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.3.2 from annotations // in flutter_launcher_icons/test/macos/macos_icon_generator_test.dart. // Do not manually edit this file. @@ -21,13 +21,23 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: subtype_of_sealed_class class _FakeLogger_0 extends _i1.SmartFake implements _i2.Logger { - _FakeLogger_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeLogger_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeProgress_1 extends _i1.SmartFake implements _i2.Progress { - _FakeProgress_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeProgress_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [FlutterLauncherIconsConfig]. @@ -36,38 +46,56 @@ class _FakeProgress_1 extends _i1.SmartFake implements _i2.Progress { class MockFlutterLauncherIconsConfig extends _i1.Mock implements _i3.FlutterLauncherIconsConfig { @override - int get minSdkAndroid => - (super.noSuchMethod(Invocation.getter(#minSdkAndroid), - returnValue: 0, returnValueForMissingStub: 0) as int); - @override - bool get removeAlphaIOS => - (super.noSuchMethod(Invocation.getter(#removeAlphaIOS), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - bool get hasAndroidAdaptiveConfig => - (super.noSuchMethod(Invocation.getter(#hasAndroidAdaptiveConfig), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - bool get hasPlatformConfig => - (super.noSuchMethod(Invocation.getter(#hasPlatformConfig), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - bool get isCustomAndroidFile => - (super.noSuchMethod(Invocation.getter(#isCustomAndroidFile), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - bool get isNeedingNewAndroidIcon => - (super.noSuchMethod(Invocation.getter(#isNeedingNewAndroidIcon), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - bool get isNeedingNewIOSIcon => - (super.noSuchMethod(Invocation.getter(#isNeedingNewIOSIcon), - returnValue: false, returnValueForMissingStub: false) as bool); + int get minSdkAndroid => (super.noSuchMethod( + Invocation.getter(#minSdkAndroid), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + @override + bool get removeAlphaIOS => (super.noSuchMethod( + Invocation.getter(#removeAlphaIOS), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + bool get hasAndroidAdaptiveConfig => (super.noSuchMethod( + Invocation.getter(#hasAndroidAdaptiveConfig), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + bool get hasPlatformConfig => (super.noSuchMethod( + Invocation.getter(#hasPlatformConfig), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + bool get isCustomAndroidFile => (super.noSuchMethod( + Invocation.getter(#isCustomAndroidFile), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + bool get isNeedingNewAndroidIcon => (super.noSuchMethod( + Invocation.getter(#isNeedingNewAndroidIcon), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + bool get isNeedingNewIOSIcon => (super.noSuchMethod( + Invocation.getter(#isNeedingNewIOSIcon), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override Map toJson() => (super.noSuchMethod( - Invocation.method(#toJson, []), - returnValue: {}, - returnValueForMissingStub: {}) as Map); + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + returnValueForMissingStub: {}, + ) as Map); } /// A class which mocks [MacOSConfig]. @@ -75,13 +103,20 @@ class MockFlutterLauncherIconsConfig extends _i1.Mock /// See the documentation for Mockito's code generation for more information. class MockMacOSConfig extends _i1.Mock implements _i3.MacOSConfig { @override - bool get generate => (super.noSuchMethod(Invocation.getter(#generate), - returnValue: false, returnValueForMissingStub: false) as bool); + bool get generate => (super.noSuchMethod( + Invocation.getter(#generate), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override Map toJson() => (super.noSuchMethod( - Invocation.method(#toJson, []), - returnValue: {}, - returnValueForMissingStub: {}) as Map); + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + returnValueForMissingStub: {}, + ) as Map); } /// A class which mocks [FLILogger]. @@ -89,31 +124,66 @@ class MockMacOSConfig extends _i1.Mock implements _i3.MacOSConfig { /// See the documentation for Mockito's code generation for more information. class MockFLILogger extends _i1.Mock implements _i4.FLILogger { @override - bool get isVerbose => (super.noSuchMethod(Invocation.getter(#isVerbose), - returnValue: false, returnValueForMissingStub: false) as bool); - @override - _i2.Logger get rawLogger => (super.noSuchMethod(Invocation.getter(#rawLogger), - returnValue: _FakeLogger_0(this, Invocation.getter(#rawLogger)), - returnValueForMissingStub: - _FakeLogger_0(this, Invocation.getter(#rawLogger))) as _i2.Logger); - @override - void error(Object? message) => - super.noSuchMethod(Invocation.method(#error, [message]), - returnValueForMissingStub: null); - @override - void verbose(Object? message) => - super.noSuchMethod(Invocation.method(#verbose, [message]), - returnValueForMissingStub: null); - @override - void info(Object? message) => - super.noSuchMethod(Invocation.method(#info, [message]), - returnValueForMissingStub: null); + bool get isVerbose => (super.noSuchMethod( + Invocation.getter(#isVerbose), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + @override + _i2.Logger get rawLogger => (super.noSuchMethod( + Invocation.getter(#rawLogger), + returnValue: _FakeLogger_0( + this, + Invocation.getter(#rawLogger), + ), + returnValueForMissingStub: _FakeLogger_0( + this, + Invocation.getter(#rawLogger), + ), + ) as _i2.Logger); + @override + void error(Object? message) => super.noSuchMethod( + Invocation.method( + #error, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void verbose(Object? message) => super.noSuchMethod( + Invocation.method( + #verbose, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void info(Object? message) => super.noSuchMethod( + Invocation.method( + #info, + [message], + ), + returnValueForMissingStub: null, + ); @override _i2.Progress progress(String? message) => (super.noSuchMethod( - Invocation.method(#progress, [message]), - returnValue: - _FakeProgress_1(this, Invocation.method(#progress, [message])), - returnValueForMissingStub: - _FakeProgress_1(this, Invocation.method(#progress, [message]))) - as _i2.Progress); + Invocation.method( + #progress, + [message], + ), + returnValue: _FakeProgress_1( + this, + Invocation.method( + #progress, + [message], + ), + ), + returnValueForMissingStub: _FakeProgress_1( + this, + Invocation.method( + #progress, + [message], + ), + ), + ) as _i2.Progress); } diff --git a/test/windows/windows_icon_generator_test.mocks.dart b/test/windows/windows_icon_generator_test.mocks.dart index 07756ea200..4ca4948570 100644 --- a/test/windows/windows_icon_generator_test.mocks.dart +++ b/test/windows/windows_icon_generator_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.0 from annotations +// Mocks generated by Mockito 5.3.2 from annotations // in flutter_launcher_icons/test/windows/windows_icon_generator_test.dart. // Do not manually edit this file. @@ -21,13 +21,23 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: subtype_of_sealed_class class _FakeLogger_0 extends _i1.SmartFake implements _i2.Logger { - _FakeLogger_0(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeLogger_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeProgress_1 extends _i1.SmartFake implements _i2.Progress { - _FakeProgress_1(Object parent, Invocation parentInvocation) - : super(parent, parentInvocation); + _FakeProgress_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [FlutterLauncherIconsConfig]. @@ -40,37 +50,48 @@ class MockFlutterLauncherIconsConfig extends _i1.Mock } @override - int get minSdkAndroid => - (super.noSuchMethod(Invocation.getter(#minSdkAndroid), returnValue: 0) - as int); - @override - bool get removeAlphaIOS => (super - .noSuchMethod(Invocation.getter(#removeAlphaIOS), returnValue: false) - as bool); - @override - bool get hasAndroidAdaptiveConfig => - (super.noSuchMethod(Invocation.getter(#hasAndroidAdaptiveConfig), - returnValue: false) as bool); - @override - bool get hasPlatformConfig => - (super.noSuchMethod(Invocation.getter(#hasPlatformConfig), - returnValue: false) as bool); - @override - bool get isCustomAndroidFile => - (super.noSuchMethod(Invocation.getter(#isCustomAndroidFile), - returnValue: false) as bool); - @override - bool get isNeedingNewAndroidIcon => - (super.noSuchMethod(Invocation.getter(#isNeedingNewAndroidIcon), - returnValue: false) as bool); - @override - bool get isNeedingNewIOSIcon => - (super.noSuchMethod(Invocation.getter(#isNeedingNewIOSIcon), - returnValue: false) as bool); - @override - Map toJson() => - (super.noSuchMethod(Invocation.method(#toJson, []), - returnValue: {}) as Map); + int get minSdkAndroid => (super.noSuchMethod( + Invocation.getter(#minSdkAndroid), + returnValue: 0, + ) as int); + @override + bool get removeAlphaIOS => (super.noSuchMethod( + Invocation.getter(#removeAlphaIOS), + returnValue: false, + ) as bool); + @override + bool get hasAndroidAdaptiveConfig => (super.noSuchMethod( + Invocation.getter(#hasAndroidAdaptiveConfig), + returnValue: false, + ) as bool); + @override + bool get hasPlatformConfig => (super.noSuchMethod( + Invocation.getter(#hasPlatformConfig), + returnValue: false, + ) as bool); + @override + bool get isCustomAndroidFile => (super.noSuchMethod( + Invocation.getter(#isCustomAndroidFile), + returnValue: false, + ) as bool); + @override + bool get isNeedingNewAndroidIcon => (super.noSuchMethod( + Invocation.getter(#isNeedingNewAndroidIcon), + returnValue: false, + ) as bool); + @override + bool get isNeedingNewIOSIcon => (super.noSuchMethod( + Invocation.getter(#isNeedingNewIOSIcon), + returnValue: false, + ) as bool); + @override + Map toJson() => (super.noSuchMethod( + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + ) as Map); } /// A class which mocks [WindowsConfig]. @@ -82,13 +103,18 @@ class MockWindowsConfig extends _i1.Mock implements _i3.WindowsConfig { } @override - bool get generate => - (super.noSuchMethod(Invocation.getter(#generate), returnValue: false) - as bool); - @override - Map toJson() => - (super.noSuchMethod(Invocation.method(#toJson, []), - returnValue: {}) as Map); + bool get generate => (super.noSuchMethod( + Invocation.getter(#generate), + returnValue: false, + ) as bool); + @override + Map toJson() => (super.noSuchMethod( + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + ) as Map); } /// A class which mocks [FLILogger]. @@ -100,29 +126,54 @@ class MockFLILogger extends _i1.Mock implements _i4.FLILogger { } @override - bool get isVerbose => - (super.noSuchMethod(Invocation.getter(#isVerbose), returnValue: false) - as bool); - @override - _i2.Logger get rawLogger => (super.noSuchMethod(Invocation.getter(#rawLogger), - returnValue: _FakeLogger_0(this, Invocation.getter(#rawLogger))) - as _i2.Logger); - @override - void error(Object? message) => - super.noSuchMethod(Invocation.method(#error, [message]), - returnValueForMissingStub: null); - @override - void verbose(Object? message) => - super.noSuchMethod(Invocation.method(#verbose, [message]), - returnValueForMissingStub: null); - @override - void info(Object? message) => - super.noSuchMethod(Invocation.method(#info, [message]), - returnValueForMissingStub: null); + bool get isVerbose => (super.noSuchMethod( + Invocation.getter(#isVerbose), + returnValue: false, + ) as bool); + @override + _i2.Logger get rawLogger => (super.noSuchMethod( + Invocation.getter(#rawLogger), + returnValue: _FakeLogger_0( + this, + Invocation.getter(#rawLogger), + ), + ) as _i2.Logger); + @override + void error(Object? message) => super.noSuchMethod( + Invocation.method( + #error, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void verbose(Object? message) => super.noSuchMethod( + Invocation.method( + #verbose, + [message], + ), + returnValueForMissingStub: null, + ); + @override + void info(Object? message) => super.noSuchMethod( + Invocation.method( + #info, + [message], + ), + returnValueForMissingStub: null, + ); @override _i2.Progress progress(String? message) => (super.noSuchMethod( - Invocation.method(#progress, [message]), - returnValue: - _FakeProgress_1(this, Invocation.method(#progress, [message]))) - as _i2.Progress); + Invocation.method( + #progress, + [message], + ), + returnValue: _FakeProgress_1( + this, + Invocation.method( + #progress, + [message], + ), + ), + ) as _i2.Progress); }