Skip to content

Commit

Permalink
chore(automated): Lint commit and format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 18, 2024
1 parent 06711c6 commit ab09f65
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 93 deletions.
6 changes: 2 additions & 4 deletions test/src/components/chat_item/chat_item_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import 'package:zeta_flutter/generated/tokens/semantics.g.dart' as _i4;
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class

class _FakeZetaPrimitives_0 extends _i1.SmartFake
implements _i2.ZetaPrimitives {
class _FakeZetaPrimitives_0 extends _i1.SmartFake implements _i2.ZetaPrimitives {
_FakeZetaPrimitives_0(
Object parent,
Invocation parentInvocation,
Expand All @@ -46,8 +45,7 @@ class _FakeColor_1 extends _i1.SmartFake implements _i3.Color {
/// A class which mocks [ZetaSemanticColors].
///
/// See the documentation for Mockito's code generation for more information.
class MockZetaSemanticColors extends _i1.Mock
implements _i4.ZetaSemanticColors {
class MockZetaSemanticColors extends _i1.Mock implements _i4.ZetaSemanticColors {
@override
_i2.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
Expand Down
33 changes: 11 additions & 22 deletions test/src/components/tooltip/tooltip_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import 'package:zeta_flutter/zeta_flutter.dart' as _i2;
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class

class _FakeZetaPrimitives_0 extends _i1.SmartFake
implements _i2.ZetaPrimitives {
class _FakeZetaPrimitives_0 extends _i1.SmartFake implements _i2.ZetaPrimitives {
_FakeZetaPrimitives_0(
Object parent,
Invocation parentInvocation,
Expand All @@ -45,8 +44,7 @@ class _FakeZetaSemantics_1 extends _i1.SmartFake implements _i2.ZetaSemantics {
);
}

class _FakeZetaSemanticColors_2 extends _i1.SmartFake
implements _i2.ZetaSemanticColors {
class _FakeZetaSemanticColors_2 extends _i1.SmartFake implements _i2.ZetaSemanticColors {
_FakeZetaSemanticColors_2(
Object parent,
Invocation parentInvocation,
Expand All @@ -56,8 +54,7 @@ class _FakeZetaSemanticColors_2 extends _i1.SmartFake
);
}

class _FakeZetaSemanticRadii_3 extends _i1.SmartFake
implements _i2.ZetaSemanticRadii {
class _FakeZetaSemanticRadii_3 extends _i1.SmartFake implements _i2.ZetaSemanticRadii {
_FakeZetaSemanticRadii_3(
Object parent,
Invocation parentInvocation,
Expand All @@ -67,8 +64,7 @@ class _FakeZetaSemanticRadii_3 extends _i1.SmartFake
);
}

class _FakeZetaSemanticSpaces_4 extends _i1.SmartFake
implements _i2.ZetaSemanticSpaces {
class _FakeZetaSemanticSpaces_4 extends _i1.SmartFake implements _i2.ZetaSemanticSpaces {
_FakeZetaSemanticSpaces_4(
Object parent,
Invocation parentInvocation,
Expand All @@ -88,12 +84,10 @@ class _FakeWidget_5 extends _i1.SmartFake implements _i3.Widget {
);

@override
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) =>
super.toString();
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString();
}

class _FakeInheritedElement_6 extends _i1.SmartFake
implements _i3.InheritedElement {
class _FakeInheritedElement_6 extends _i1.SmartFake implements _i3.InheritedElement {
_FakeInheritedElement_6(
Object parent,
Invocation parentInvocation,
Expand All @@ -103,12 +97,10 @@ class _FakeInheritedElement_6 extends _i1.SmartFake
);

@override
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) =>
super.toString();
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString();
}

class _FakeDiagnosticsNode_7 extends _i1.SmartFake
implements _i4.DiagnosticsNode {
class _FakeDiagnosticsNode_7 extends _i1.SmartFake implements _i4.DiagnosticsNode {
_FakeDiagnosticsNode_7(
Object parent,
Invocation parentInvocation,
Expand Down Expand Up @@ -236,8 +228,7 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
) as _i3.Widget);

@override
bool updateShouldNotify(_i3.InheritedWidget? oldWidget) =>
(super.noSuchMethod(
bool updateShouldNotify(_i3.InheritedWidget? oldWidget) => (super.noSuchMethod(
Invocation.method(
#updateShouldNotify,
[oldWidget],
Expand All @@ -247,8 +238,7 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
) as bool);

@override
void debugFillProperties(_i4.DiagnosticPropertiesBuilder? properties) =>
super.noSuchMethod(
void debugFillProperties(_i4.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod(
Invocation.method(
#debugFillProperties,
[properties],
Expand Down Expand Up @@ -429,6 +419,5 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
) as List<_i4.DiagnosticsNode>);

@override
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) =>
super.toString();
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString();
}
55 changes: 18 additions & 37 deletions test/src/utils/extensions_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,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 @@ -51,12 +49,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 @@ -73,8 +69,7 @@ class _FakeDiagnosticsNode_2 extends _i1.SmartFake
super.toString();
}

class _FakeZetaPrimitives_3 extends _i1.SmartFake
implements _i4.ZetaPrimitives {
class _FakeZetaPrimitives_3 extends _i1.SmartFake implements _i4.ZetaPrimitives {
_FakeZetaPrimitives_3(
Object parent,
Invocation parentInvocation,
Expand Down Expand Up @@ -104,8 +99,7 @@ class _FakeZetaSemantics_5 extends _i1.SmartFake implements _i6.ZetaSemantics {
);
}

class _FakeZetaSemanticColors_6 extends _i1.SmartFake
implements _i6.ZetaSemanticColors {
class _FakeZetaSemanticColors_6 extends _i1.SmartFake implements _i6.ZetaSemanticColors {
_FakeZetaSemanticColors_6(
Object parent,
Invocation parentInvocation,
Expand All @@ -115,8 +109,7 @@ class _FakeZetaSemanticColors_6 extends _i1.SmartFake
);
}

class _FakeZetaSemanticRadii_7 extends _i1.SmartFake
implements _i6.ZetaSemanticRadii {
class _FakeZetaSemanticRadii_7 extends _i1.SmartFake implements _i6.ZetaSemanticRadii {
_FakeZetaSemanticRadii_7(
Object parent,
Invocation parentInvocation,
Expand All @@ -126,8 +119,7 @@ class _FakeZetaSemanticRadii_7 extends _i1.SmartFake
);
}

class _FakeZetaSemanticSpaces_8 extends _i1.SmartFake
implements _i6.ZetaSemanticSpaces {
class _FakeZetaSemanticSpaces_8 extends _i1.SmartFake implements _i6.ZetaSemanticSpaces {
_FakeZetaSemanticSpaces_8(
Object parent,
Invocation parentInvocation,
Expand All @@ -137,8 +129,7 @@ class _FakeZetaSemanticSpaces_8 extends _i1.SmartFake
);
}

class _FakeInheritedElement_9 extends _i1.SmartFake
implements _i2.InheritedElement {
class _FakeInheritedElement_9 extends _i1.SmartFake implements _i2.InheritedElement {
_FakeInheritedElement_9(
Object parent,
Invocation parentInvocation,
Expand All @@ -148,8 +139,7 @@ class _FakeInheritedElement_9 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 @@ -213,8 +203,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 @@ -232,8 +221,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
);

@override
void dispatchNotification(_i7.Notification? notification) =>
super.noSuchMethod(
void dispatchNotification(_i7.Notification? notification) => super.noSuchMethod(
Invocation.method(
#dispatchNotification,
[notification],
Expand Down Expand Up @@ -300,9 +288,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 @@ -313,8 +299,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 All @@ -339,8 +324,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
/// A class which mocks [ZetaSemanticColors].
///
/// See the documentation for Mockito's code generation for more information.
class MockZetaSemanticColors extends _i1.Mock
implements _i6.ZetaSemanticColors {
class MockZetaSemanticColors extends _i1.Mock implements _i6.ZetaSemanticColors {
@override
_i4.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
Expand Down Expand Up @@ -1513,8 +1497,7 @@ class MockZeta extends _i1.Mock implements _i6.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 @@ -1524,8 +1507,7 @@ class MockZeta extends _i1.Mock implements _i6.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 @@ -1706,6 +1688,5 @@ class MockZeta extends _i1.Mock implements _i6.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();
}
33 changes: 11 additions & 22 deletions test/src/utils/rounded_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import 'package:zeta_flutter/zeta_flutter.dart' as _i2;
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class

class _FakeZetaPrimitives_0 extends _i1.SmartFake
implements _i2.ZetaPrimitives {
class _FakeZetaPrimitives_0 extends _i1.SmartFake implements _i2.ZetaPrimitives {
_FakeZetaPrimitives_0(
Object parent,
Invocation parentInvocation,
Expand All @@ -45,8 +44,7 @@ class _FakeZetaSemantics_1 extends _i1.SmartFake implements _i2.ZetaSemantics {
);
}

class _FakeZetaSemanticColors_2 extends _i1.SmartFake
implements _i2.ZetaSemanticColors {
class _FakeZetaSemanticColors_2 extends _i1.SmartFake implements _i2.ZetaSemanticColors {
_FakeZetaSemanticColors_2(
Object parent,
Invocation parentInvocation,
Expand All @@ -56,8 +54,7 @@ class _FakeZetaSemanticColors_2 extends _i1.SmartFake
);
}

class _FakeZetaSemanticRadii_3 extends _i1.SmartFake
implements _i2.ZetaSemanticRadii {
class _FakeZetaSemanticRadii_3 extends _i1.SmartFake implements _i2.ZetaSemanticRadii {
_FakeZetaSemanticRadii_3(
Object parent,
Invocation parentInvocation,
Expand All @@ -67,8 +64,7 @@ class _FakeZetaSemanticRadii_3 extends _i1.SmartFake
);
}

class _FakeZetaSemanticSpaces_4 extends _i1.SmartFake
implements _i2.ZetaSemanticSpaces {
class _FakeZetaSemanticSpaces_4 extends _i1.SmartFake implements _i2.ZetaSemanticSpaces {
_FakeZetaSemanticSpaces_4(
Object parent,
Invocation parentInvocation,
Expand All @@ -88,12 +84,10 @@ class _FakeWidget_5 extends _i1.SmartFake implements _i3.Widget {
);

@override
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) =>
super.toString();
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString();
}

class _FakeInheritedElement_6 extends _i1.SmartFake
implements _i3.InheritedElement {
class _FakeInheritedElement_6 extends _i1.SmartFake implements _i3.InheritedElement {
_FakeInheritedElement_6(
Object parent,
Invocation parentInvocation,
Expand All @@ -103,12 +97,10 @@ class _FakeInheritedElement_6 extends _i1.SmartFake
);

@override
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) =>
super.toString();
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString();
}

class _FakeDiagnosticsNode_7 extends _i1.SmartFake
implements _i4.DiagnosticsNode {
class _FakeDiagnosticsNode_7 extends _i1.SmartFake implements _i4.DiagnosticsNode {
_FakeDiagnosticsNode_7(
Object parent,
Invocation parentInvocation,
Expand Down Expand Up @@ -236,8 +228,7 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
) as _i3.Widget);

@override
bool updateShouldNotify(_i3.InheritedWidget? oldWidget) =>
(super.noSuchMethod(
bool updateShouldNotify(_i3.InheritedWidget? oldWidget) => (super.noSuchMethod(
Invocation.method(
#updateShouldNotify,
[oldWidget],
Expand All @@ -247,8 +238,7 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
) as bool);

@override
void debugFillProperties(_i4.DiagnosticPropertiesBuilder? properties) =>
super.noSuchMethod(
void debugFillProperties(_i4.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod(
Invocation.method(
#debugFillProperties,
[properties],
Expand Down Expand Up @@ -429,6 +419,5 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
) as List<_i4.DiagnosticsNode>);

@override
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) =>
super.toString();
String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => super.toString();
}
Loading

0 comments on commit ab09f65

Please sign in to comment.