From 9ab8e58844e3db0bde76a1622e60cde7916770de Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 10 Jun 2024 22:05:22 +0000 Subject: [PATCH] [automated commit] lint format and import sort --- .../utils/equatable_dignosticable_mixin.dart | 2 +- test/src/utils/extensions_test.mocks.dart | 52 ++++++------------- test/src/zeta_provider_test.mocks.dart | 29 ++++------- 3 files changed, 27 insertions(+), 56 deletions(-) diff --git a/lib/src/utils/equatable_dignosticable_mixin.dart b/lib/src/utils/equatable_dignosticable_mixin.dart index bb1b1fae..46007d65 100644 --- a/lib/src/utils/equatable_dignosticable_mixin.dart +++ b/lib/src/utils/equatable_dignosticable_mixin.dart @@ -11,6 +11,6 @@ import 'package:flutter/foundation.dart'; mixin EquatableDiagnosticableMixin on EquatableMixin { @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return '${super.toString()}'; + return super.toString(); } } diff --git a/test/src/utils/extensions_test.mocks.dart b/test/src/utils/extensions_test.mocks.dart index c0781128..15ccab50 100644 --- a/test/src/utils/extensions_test.mocks.dart +++ b/test/src/utils/extensions_test.mocks.dart @@ -39,12 +39,10 @@ class _FakeWidget_0 extends _i1.SmartFake implements _i2.Widget { ); @override - String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => - super.toString(); + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } -class _FakeInheritedWidget_1 extends _i1.SmartFake - implements _i2.InheritedWidget { +class _FakeInheritedWidget_1 extends _i1.SmartFake implements _i2.InheritedWidget { _FakeInheritedWidget_1( Object parent, Invocation parentInvocation, @@ -54,12 +52,10 @@ class _FakeInheritedWidget_1 extends _i1.SmartFake ); @override - String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => - super.toString(); + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } -class _FakeDiagnosticsNode_2 extends _i1.SmartFake - implements _i3.DiagnosticsNode { +class _FakeDiagnosticsNode_2 extends _i1.SmartFake implements _i3.DiagnosticsNode { _FakeDiagnosticsNode_2( Object parent, Invocation parentInvocation, @@ -76,8 +72,7 @@ class _FakeDiagnosticsNode_2 extends _i1.SmartFake super.toString(); } -class _FakeZetaColorSwatch_3 extends _i1.SmartFake - implements _i4.ZetaColorSwatch { +class _FakeZetaColorSwatch_3 extends _i1.SmartFake implements _i4.ZetaColorSwatch { _FakeZetaColorSwatch_3( Object parent, Invocation parentInvocation, @@ -107,8 +102,7 @@ class _FakeZetaColors_5 extends _i1.SmartFake implements _i6.ZetaColors { ); } -class _FakeZetaColorScheme_6 extends _i1.SmartFake - implements _i7.ZetaColorScheme { +class _FakeZetaColorScheme_6 extends _i1.SmartFake implements _i7.ZetaColorScheme { _FakeZetaColorScheme_6( Object parent, Invocation parentInvocation, @@ -118,8 +112,7 @@ class _FakeZetaColorScheme_6 extends _i1.SmartFake ); @override - String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => - super.toString(); + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } class _FakeZetaThemeData_7 extends _i1.SmartFake implements _i6.ZetaThemeData { @@ -132,8 +125,7 @@ class _FakeZetaThemeData_7 extends _i1.SmartFake implements _i6.ZetaThemeData { ); } -class _FakeInheritedElement_8 extends _i1.SmartFake - implements _i2.InheritedElement { +class _FakeInheritedElement_8 extends _i1.SmartFake implements _i2.InheritedElement { _FakeInheritedElement_8( Object parent, Invocation parentInvocation, @@ -143,8 +135,7 @@ class _FakeInheritedElement_8 extends _i1.SmartFake ); @override - String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => - super.toString(); + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } /// A class which mocks [BuildContext]. @@ -208,8 +199,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { ) as _i2.InheritedWidget); @override - void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) => - super.noSuchMethod( + void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) => super.noSuchMethod( Invocation.method( #visitAncestorElements, [visitor], @@ -227,8 +217,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { ); @override - void dispatchNotification(_i8.Notification? notification) => - super.noSuchMethod( + void dispatchNotification(_i8.Notification? notification) => super.noSuchMethod( Invocation.method( #dispatchNotification, [notification], @@ -295,9 +284,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { ) as _i3.DiagnosticsNode); @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => - (super.noSuchMethod( + List<_i3.DiagnosticsNode> describeMissingAncestor({required Type? expectedAncestorType}) => (super.noSuchMethod( Invocation.method( #describeMissingAncestor, [], @@ -308,8 +295,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { ) as List<_i3.DiagnosticsNode>); @override - _i3.DiagnosticsNode describeOwnershipChain(String? name) => - (super.noSuchMethod( + _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( Invocation.method( #describeOwnershipChain, [name], @@ -1431,8 +1417,7 @@ class MockZetaColors extends _i1.Mock implements _i6.ZetaColors { ) as _i6.ZetaColors); @override - _i6.ZetaColors apply({required _i9.ZetaContrast? contrast}) => - (super.noSuchMethod( + _i6.ZetaColors apply({required _i9.ZetaContrast? contrast}) => (super.noSuchMethod( Invocation.method( #apply, [], @@ -1544,8 +1529,7 @@ class MockZeta extends _i1.Mock implements _i10.Zeta { ) as _i2.Widget); @override - bool updateShouldNotify(_i2.InheritedWidget? oldWidget) => - (super.noSuchMethod( + bool updateShouldNotify(_i2.InheritedWidget? oldWidget) => (super.noSuchMethod( Invocation.method( #updateShouldNotify, [oldWidget], @@ -1555,8 +1539,7 @@ class MockZeta extends _i1.Mock implements _i10.Zeta { ) as bool); @override - void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => - super.noSuchMethod( + void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod( Invocation.method( #debugFillProperties, [properties], @@ -1737,6 +1720,5 @@ class MockZeta extends _i1.Mock implements _i10.Zeta { ) as List<_i3.DiagnosticsNode>); @override - String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => - super.toString(); + String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } diff --git a/test/src/zeta_provider_test.mocks.dart b/test/src/zeta_provider_test.mocks.dart index dacd694b..04681f4b 100644 --- a/test/src/zeta_provider_test.mocks.dart +++ b/test/src/zeta_provider_test.mocks.dart @@ -29,26 +29,15 @@ import 'package:zeta_flutter/src/theme/theme_service.dart' as _i2; /// See the documentation for Mockito's code generation for more information. class MockZetaThemeService extends _i1.Mock implements _i2.ZetaThemeService { @override - _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)> - loadTheme() => (super.noSuchMethod( - Invocation.method( - #loadTheme, - [], - ), - returnValue: _i3.Future< - ( - _i4.ZetaThemeData?, - _i5.ThemeMode?, - _i6.ZetaContrast? - )>.value((null, null, null)), - returnValueForMissingStub: _i3.Future< - ( - _i4.ZetaThemeData?, - _i5.ThemeMode?, - _i6.ZetaContrast? - )>.value((null, null, null)), - ) as _i3 - .Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>); + _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)> loadTheme() => (super.noSuchMethod( + Invocation.method( + #loadTheme, + [], + ), + returnValue: _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>.value((null, null, null)), + returnValueForMissingStub: + _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>.value((null, null, null)), + ) as _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>); @override _i3.Future saveTheme({