Skip to content

Commit 58a804d

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

File tree

2 files changed

+26
-55
lines changed

2 files changed

+26
-55
lines changed

test/src/utils/extensions_test.mocks.dart

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

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

46-
class _FakeInheritedWidget_1 extends _i1.SmartFake
47-
implements _i2.InheritedWidget {
45+
class _FakeInheritedWidget_1 extends _i1.SmartFake implements _i2.InheritedWidget {
4846
_FakeInheritedWidget_1(
4947
Object parent,
5048
Invocation parentInvocation,
@@ -54,12 +52,10 @@ class _FakeInheritedWidget_1 extends _i1.SmartFake
5452
);
5553

5654
@override
57-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
58-
super.toString();
55+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
5956
}
6057

61-
class _FakeDiagnosticsNode_2 extends _i1.SmartFake
62-
implements _i3.DiagnosticsNode {
58+
class _FakeDiagnosticsNode_2 extends _i1.SmartFake implements _i3.DiagnosticsNode {
6359
_FakeDiagnosticsNode_2(
6460
Object parent,
6561
Invocation parentInvocation,
@@ -76,8 +72,7 @@ class _FakeDiagnosticsNode_2 extends _i1.SmartFake
7672
super.toString();
7773
}
7874

79-
class _FakeZetaColorSwatch_3 extends _i1.SmartFake
80-
implements _i4.ZetaColorSwatch {
75+
class _FakeZetaColorSwatch_3 extends _i1.SmartFake implements _i4.ZetaColorSwatch {
8176
_FakeZetaColorSwatch_3(
8277
Object parent,
8378
Invocation parentInvocation,
@@ -107,8 +102,7 @@ class _FakeZetaColors_5 extends _i1.SmartFake implements _i6.ZetaColors {
107102
);
108103
}
109104

110-
class _FakeZetaColorScheme_6 extends _i1.SmartFake
111-
implements _i7.ZetaColorScheme {
105+
class _FakeZetaColorScheme_6 extends _i1.SmartFake implements _i7.ZetaColorScheme {
112106
_FakeZetaColorScheme_6(
113107
Object parent,
114108
Invocation parentInvocation,
@@ -118,8 +112,7 @@ class _FakeZetaColorScheme_6 extends _i1.SmartFake
118112
);
119113

120114
@override
121-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
122-
super.toString();
115+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
123116
}
124117

125118
class _FakeZetaThemeData_7 extends _i1.SmartFake implements _i6.ZetaThemeData {
@@ -132,8 +125,7 @@ class _FakeZetaThemeData_7 extends _i1.SmartFake implements _i6.ZetaThemeData {
132125
);
133126
}
134127

135-
class _FakeInheritedElement_8 extends _i1.SmartFake
136-
implements _i2.InheritedElement {
128+
class _FakeInheritedElement_8 extends _i1.SmartFake implements _i2.InheritedElement {
137129
_FakeInheritedElement_8(
138130
Object parent,
139131
Invocation parentInvocation,
@@ -143,8 +135,7 @@ class _FakeInheritedElement_8 extends _i1.SmartFake
143135
);
144136

145137
@override
146-
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) =>
147-
super.toString();
138+
String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString();
148139
}
149140

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

210201
@override
211-
void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) =>
212-
super.noSuchMethod(
202+
void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) => super.noSuchMethod(
213203
Invocation.method(
214204
#visitAncestorElements,
215205
[visitor],
@@ -227,8 +217,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
227217
);
228218

229219
@override
230-
void dispatchNotification(_i8.Notification? notification) =>
231-
super.noSuchMethod(
220+
void dispatchNotification(_i8.Notification? notification) => super.noSuchMethod(
232221
Invocation.method(
233222
#dispatchNotification,
234223
[notification],
@@ -295,9 +284,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
295284
) as _i3.DiagnosticsNode);
296285

297286
@override
298-
List<_i3.DiagnosticsNode> describeMissingAncestor(
299-
{required Type? expectedAncestorType}) =>
300-
(super.noSuchMethod(
287+
List<_i3.DiagnosticsNode> describeMissingAncestor({required Type? expectedAncestorType}) => (super.noSuchMethod(
301288
Invocation.method(
302289
#describeMissingAncestor,
303290
[],
@@ -308,8 +295,7 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext {
308295
) as List<_i3.DiagnosticsNode>);
309296

310297
@override
311-
_i3.DiagnosticsNode describeOwnershipChain(String? name) =>
312-
(super.noSuchMethod(
298+
_i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod(
313299
Invocation.method(
314300
#describeOwnershipChain,
315301
[name],
@@ -1431,8 +1417,7 @@ class MockZetaColors extends _i1.Mock implements _i6.ZetaColors {
14311417
) as _i6.ZetaColors);
14321418

14331419
@override
1434-
_i6.ZetaColors apply({required _i9.ZetaContrast? contrast}) =>
1435-
(super.noSuchMethod(
1420+
_i6.ZetaColors apply({required _i9.ZetaContrast? contrast}) => (super.noSuchMethod(
14361421
Invocation.method(
14371422
#apply,
14381423
[],
@@ -1551,8 +1536,7 @@ class MockZeta extends _i1.Mock implements _i10.Zeta {
15511536
) as _i2.Widget);
15521537

15531538
@override
1554-
bool updateShouldNotify(_i2.InheritedWidget? oldWidget) =>
1555-
(super.noSuchMethod(
1539+
bool updateShouldNotify(_i2.InheritedWidget? oldWidget) => (super.noSuchMethod(
15561540
Invocation.method(
15571541
#updateShouldNotify,
15581542
[oldWidget],
@@ -1562,8 +1546,7 @@ class MockZeta extends _i1.Mock implements _i10.Zeta {
15621546
) as bool);
15631547

15641548
@override
1565-
void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) =>
1566-
super.noSuchMethod(
1549+
void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod(
15671550
Invocation.method(
15681551
#debugFillProperties,
15691552
[properties],
@@ -1744,6 +1727,5 @@ class MockZeta extends _i1.Mock implements _i10.Zeta {
17441727
) as List<_i3.DiagnosticsNode>);
17451728

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

test/src/zeta_provider_test.mocks.dart

+9-20
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,15 @@ 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?)>
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?)>);
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?)>);
5241

5342
@override
5443
_i3.Future<void> saveTheme({

0 commit comments

Comments
 (0)