Skip to content

Commit

Permalink
test(mocks): rebuild test mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RatakondalaArun authored and MarkOSullivan94 committed Oct 4, 2022
1 parent e6251ee commit 2cc4176
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 169 deletions.
104 changes: 66 additions & 38 deletions 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.

Expand All @@ -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].
Expand All @@ -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<String, dynamic> toJson() =>
(super.noSuchMethod(Invocation.method(#toJson, []),
returnValue: <String, dynamic>{}) as Map<String, dynamic>);
Map<String, dynamic> toJson() => (super.noSuchMethod(
Invocation.method(
#toJson,
[],
),
returnValue: <String, dynamic>{},
) as Map<String, dynamic>);
}

/// A class which mocks [IconGenerator].
Expand All @@ -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);
}
200 changes: 135 additions & 65 deletions 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.

Expand All @@ -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].
Expand All @@ -36,84 +46,144 @@ 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<String, dynamic> toJson() => (super.noSuchMethod(
Invocation.method(#toJson, []),
returnValue: <String, dynamic>{},
returnValueForMissingStub: <String, dynamic>{}) as Map<String, dynamic>);
Invocation.method(
#toJson,
[],
),
returnValue: <String, dynamic>{},
returnValueForMissingStub: <String, dynamic>{},
) as Map<String, dynamic>);
}

/// A class which mocks [MacOSConfig].
///
/// 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<String, dynamic> toJson() => (super.noSuchMethod(
Invocation.method(#toJson, []),
returnValue: <String, dynamic>{},
returnValueForMissingStub: <String, dynamic>{}) as Map<String, dynamic>);
Invocation.method(
#toJson,
[],
),
returnValue: <String, dynamic>{},
returnValueForMissingStub: <String, dynamic>{},
) as Map<String, dynamic>);
}

/// A class which mocks [FLILogger].
///
/// 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);
}

0 comments on commit 2cc4176

Please sign in to comment.