Skip to content

Commit

Permalink
[automated commit] lint format and import sort
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 10, 2024
1 parent d0e36e6 commit 9ab8e58
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 56 deletions.
2 changes: 1 addition & 1 deletion lib/src/utils/equatable_dignosticable_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
52 changes: 17 additions & 35 deletions test/src/utils/extensions_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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 {
Expand All @@ -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,
Expand All @@ -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].
Expand Down Expand Up @@ -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],
Expand All @@ -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],
Expand Down Expand Up @@ -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,
[],
Expand All @@ -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],
Expand Down Expand Up @@ -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,
[],
Expand Down Expand Up @@ -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],
Expand All @@ -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],
Expand Down Expand Up @@ -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();
}
29 changes: 9 additions & 20 deletions test/src/zeta_provider_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> saveTheme({
Expand Down

0 comments on commit 9ab8e58

Please sign in to comment.