Skip to content

Commit bcda524

Browse files
author
github-actions
committed
chore(automated): Lint commit and format
1 parent e39be29 commit bcda524

File tree

2 files changed

+55
-26
lines changed

2 files changed

+55
-26
lines changed

test/src/utils/extensions_test.mocks.dart

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ class _FakeWidget_0 extends _i1.SmartFake implements _i2.Widget {
3939
);
4040

4141
@override
42-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
42+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
43+
super.toString();
4344
}
4445

45-
class _FakeInheritedWidget_1 extends _i1.SmartFake implements _i2.InheritedWidget {
46+
class _FakeInheritedWidget_1 extends _i1.SmartFake
47+
implements _i2.InheritedWidget {
4648
_FakeInheritedWidget_1(
4749
Object parent,
4850
Invocation parentInvocation,
@@ -52,10 +54,12 @@ class _FakeInheritedWidget_1 extends _i1.SmartFake implements _i2.InheritedWidge
5254
);
5355

5456
@override
55-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
57+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
58+
super.toString();
5659
}
5760

58-
class _FakeDiagnosticsNode_2 extends _i1.SmartFake implements _i3.DiagnosticsNode {
61+
class _FakeDiagnosticsNode_2 extends _i1.SmartFake
62+
implements _i3.DiagnosticsNode {
5963
_FakeDiagnosticsNode_2(
6064
Object parent,
6165
Invocation parentInvocation,
@@ -72,7 +76,8 @@ class _FakeDiagnosticsNode_2 extends _i1.SmartFake implements _i3.DiagnosticsNod
7276
super.toString();
7377
}
7478

75-
class _FakeZetaColorSwatch_3 extends _i1.SmartFake implements _i4.ZetaColorSwatch {
79+
class _FakeZetaColorSwatch_3 extends _i1.SmartFake
80+
implements _i4.ZetaColorSwatch {
7681
_FakeZetaColorSwatch_3(
7782
Object parent,
7883
Invocation parentInvocation,
@@ -102,7 +107,8 @@ class _FakeZetaColors_5 extends _i1.SmartFake implements _i6.ZetaColors {
102107
);
103108
}
104109

105-
class _FakeZetaColorScheme_6 extends _i1.SmartFake implements _i7.ZetaColorScheme {
110+
class _FakeZetaColorScheme_6 extends _i1.SmartFake
111+
implements _i7.ZetaColorScheme {
106112
_FakeZetaColorScheme_6(
107113
Object parent,
108114
Invocation parentInvocation,
@@ -112,7 +118,8 @@ class _FakeZetaColorScheme_6 extends _i1.SmartFake implements _i7.ZetaColorSchem
112118
);
113119

114120
@override
115-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
121+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
122+
super.toString();
116123
}
117124

118125
class _FakeZetaThemeData_7 extends _i1.SmartFake implements _i6.ZetaThemeData {
@@ -125,7 +132,8 @@ class _FakeZetaThemeData_7 extends _i1.SmartFake implements _i6.ZetaThemeData {
125132
);
126133
}
127134

128-
class _FakeInheritedElement_8 extends _i1.SmartFake implements _i2.InheritedElement {
135+
class _FakeInheritedElement_8 extends _i1.SmartFake
136+
implements _i2.InheritedElement {
129137
_FakeInheritedElement_8(
130138
Object parent,
131139
Invocation parentInvocation,
@@ -135,7 +143,8 @@ class _FakeInheritedElement_8 extends _i1.SmartFake implements _i2.InheritedElem
135143
);
136144

137145
@override
138-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
146+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
147+
super.toString();
139148
}
140149

141150
/// A class which mocks [BuildContext].
@@ -199,7 +208,8 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
199208
) as _i2.InheritedWidget);
200209

201210
@override
202-
void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) => super.noSuchMethod(
211+
void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) =>
212+
super.noSuchMethod(
203213
Invocation.method(
204214
#visitAncestorElements,
205215
[visitor],
@@ -217,7 +227,8 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
217227
);
218228

219229
@override
220-
void dispatchNotification(_i8.Notification? notification) => super.noSuchMethod(
230+
void dispatchNotification(_i8.Notification? notification) =>
231+
super.noSuchMethod(
221232
Invocation.method(
222233
#dispatchNotification,
223234
[notification],
@@ -284,7 +295,9 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
284295
) as _i3.DiagnosticsNode);
285296

286297
@override
287-
List<_i3.DiagnosticsNode> describeMissingAncestor({required Type? expectedAncestorType}) => (super.noSuchMethod(
298+
List<_i3.DiagnosticsNode> describeMissingAncestor(
299+
{required Type? expectedAncestorType}) =>
300+
(super.noSuchMethod(
288301
Invocation.method(
289302
#describeMissingAncestor,
290303
[],
@@ -295,7 +308,8 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
295308
) as List<_i3.DiagnosticsNode>);
296309

297310
@override
298-
_i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod(
311+
_i3.DiagnosticsNode describeOwnershipChain(String? name) =>
312+
(super.noSuchMethod(
299313
Invocation.method(
300314
#describeOwnershipChain,
301315
[name],
@@ -1417,7 +1431,8 @@ class MockZetaColors extends _i1.Mock implements _i6.ZetaColors {
14171431
) as _i6.ZetaColors);
14181432

14191433
@override
1420-
_i6.ZetaColors apply({required _i9.ZetaContrast? contrast}) => (super.noSuchMethod(
1434+
_i6.ZetaColors apply({required _i9.ZetaContrast? contrast}) =>
1435+
(super.noSuchMethod(
14211436
Invocation.method(
14221437
#apply,
14231438
[],
@@ -1536,7 +1551,8 @@ class MockZeta extends _i1.Mock implements _i10.Zeta {
15361551
) as _i2.Widget);
15371552

15381553
@override
1539-
bool updateShouldNotify(_i2.InheritedWidget? oldWidget) => (super.noSuchMethod(
1554+
bool updateShouldNotify(_i2.InheritedWidget? oldWidget) =>
1555+
(super.noSuchMethod(
15401556
Invocation.method(
15411557
#updateShouldNotify,
15421558
[oldWidget],
@@ -1546,7 +1562,8 @@ class MockZeta extends _i1.Mock implements _i10.Zeta {
15461562
) as bool);
15471563

15481564
@override
1549-
void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod(
1565+
void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) =>
1566+
super.noSuchMethod(
15501567
Invocation.method(
15511568
#debugFillProperties,
15521569
[properties],
@@ -1727,5 +1744,6 @@ class MockZeta extends _i1.Mock implements _i10.Zeta {
17271744
) as List<_i3.DiagnosticsNode>);
17281745

17291746
@override
1730-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
1747+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
1748+
super.toString();
17311749
}

test/src/zeta_provider_test.mocks.dart

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,26 @@ import 'package:zeta_flutter/src/theme/theme_service.dart' as _i2;
2929
/// See the documentation for Mockito's code generation for more information.
3030
class MockZetaThemeService extends _i1.Mock implements _i2.ZetaThemeService {
3131
@override
32-
_i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)> loadTheme() => (super.noSuchMethod(
33-
Invocation.method(
34-
#loadTheme,
35-
[],
36-
),
37-
returnValue: _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>.value((null, null, null)),
38-
returnValueForMissingStub:
39-
_i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>.value((null, null, null)),
40-
) as _i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>);
32+
_i3.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>
33+
loadTheme() => (super.noSuchMethod(
34+
Invocation.method(
35+
#loadTheme,
36+
[],
37+
),
38+
returnValue: _i3.Future<
39+
(
40+
_i4.ZetaThemeData?,
41+
_i5.ThemeMode?,
42+
_i6.ZetaContrast?
43+
)>.value((null, null, null)),
44+
returnValueForMissingStub: _i3.Future<
45+
(
46+
_i4.ZetaThemeData?,
47+
_i5.ThemeMode?,
48+
_i6.ZetaContrast?
49+
)>.value((null, null, null)),
50+
) as _i3
51+
.Future<(_i4.ZetaThemeData?, _i5.ThemeMode?, _i6.ZetaContrast?)>);
4152

4253
@override
4354
_i3.Future<void> saveTheme({

0 commit comments

Comments
 (0)