@@ -24,19 +24,19 @@ import 'package:parse_server_sdk/parse_server_sdk.dart' as _i2;
2424
2525class _FakeParseCoreData_0 extends _i1.SmartFake implements _i2.ParseCoreData {
2626 _FakeParseCoreData_0 (Object parent, Invocation parentInvocation)
27- : super (parent, parentInvocation);
27+ : super (parent, parentInvocation);
2828}
2929
3030class _FakeParseNetworkResponse_1 extends _i1.SmartFake
3131 implements _i2.ParseNetworkResponse {
3232 _FakeParseNetworkResponse_1 (Object parent, Invocation parentInvocation)
33- : super (parent, parentInvocation);
33+ : super (parent, parentInvocation);
3434}
3535
3636class _FakeParseNetworkByteResponse_2 extends _i1.SmartFake
3737 implements _i2.ParseNetworkByteResponse {
3838 _FakeParseNetworkByteResponse_2 (Object parent, Invocation parentInvocation)
39- : super (parent, parentInvocation);
39+ : super (parent, parentInvocation);
4040}
4141
4242/// A class which mocks [ParseClient] .
@@ -48,12 +48,10 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
4848 }
4949
5050 @override
51- _i2.ParseCoreData get data =>
52- (super .noSuchMethod (
53- Invocation .getter (#data),
54- returnValue: _FakeParseCoreData_0 (this , Invocation .getter (#data)),
55- )
56- as _i2.ParseCoreData );
51+ _i2.ParseCoreData get data => (super .noSuchMethod (
52+ Invocation .getter (#data),
53+ returnValue: _FakeParseCoreData_0 (this , Invocation .getter (#data)),
54+ ) as _i2.ParseCoreData );
5755
5856 @override
5957 _i3.Future <_i2.ParseNetworkResponse > get (
@@ -62,23 +60,22 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
6260 _i2.ProgressCallback ? onReceiveProgress,
6361 }) =>
6462 (super .noSuchMethod (
63+ Invocation .method (
64+ #get ,
65+ [path],
66+ {#options: options, #onReceiveProgress: onReceiveProgress},
67+ ),
68+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
69+ _FakeParseNetworkResponse_1 (
70+ this ,
6571 Invocation .method (
6672 #get ,
6773 [path],
6874 {#options: options, #onReceiveProgress: onReceiveProgress},
6975 ),
70- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
71- _FakeParseNetworkResponse_1 (
72- this ,
73- Invocation .method (
74- #get ,
75- [path],
76- {#options: options, #onReceiveProgress: onReceiveProgress},
77- ),
78- ),
79- ),
80- )
81- as _i3.Future <_i2.ParseNetworkResponse >);
76+ ),
77+ ),
78+ ) as _i3.Future <_i2.ParseNetworkResponse >);
8279
8380 @override
8481 _i3.Future <_i2.ParseNetworkResponse > put (
@@ -87,19 +84,18 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
8784 _i2.ParseNetworkOptions ? options,
8885 }) =>
8986 (super .noSuchMethod (
90- Invocation .method (#put, [path], {#data: data, #options: options}),
91- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
92- _FakeParseNetworkResponse_1 (
93- this ,
94- Invocation .method (
95- #put,
96- [path],
97- {#data: data, #options: options},
98- ),
99- ),
87+ Invocation .method (#put, [path], {#data: data, #options: options}),
88+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
89+ _FakeParseNetworkResponse_1 (
90+ this ,
91+ Invocation .method (
92+ #put,
93+ [path],
94+ {#data: data, #options: options},
10095 ),
101- )
102- as _i3.Future <_i2.ParseNetworkResponse >);
96+ ),
97+ ),
98+ ) as _i3.Future <_i2.ParseNetworkResponse >);
10399
104100 @override
105101 _i3.Future <_i2.ParseNetworkResponse > post (
@@ -108,19 +104,18 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
108104 _i2.ParseNetworkOptions ? options,
109105 }) =>
110106 (super .noSuchMethod (
111- Invocation .method (#post, [path], {#data: data, #options: options}),
112- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
113- _FakeParseNetworkResponse_1 (
114- this ,
115- Invocation .method (
116- #post,
117- [path],
118- {#data: data, #options: options},
119- ),
120- ),
107+ Invocation .method (#post, [path], {#data: data, #options: options}),
108+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
109+ _FakeParseNetworkResponse_1 (
110+ this ,
111+ Invocation .method (
112+ #post,
113+ [path],
114+ {#data: data, #options: options},
121115 ),
122- )
123- as _i3.Future <_i2.ParseNetworkResponse >);
116+ ),
117+ ),
118+ ) as _i3.Future <_i2.ParseNetworkResponse >);
124119
125120 @override
126121 _i3.Future <_i2.ParseNetworkResponse > postBytes (
@@ -131,6 +126,19 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
131126 dynamic cancelToken,
132127 }) =>
133128 (super .noSuchMethod (
129+ Invocation .method (
130+ #postBytes,
131+ [path],
132+ {
133+ #data: data,
134+ #options: options,
135+ #onSendProgress: onSendProgress,
136+ #cancelToken: cancelToken,
137+ },
138+ ),
139+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
140+ _FakeParseNetworkResponse_1 (
141+ this ,
134142 Invocation .method (
135143 #postBytes,
136144 [path],
@@ -141,39 +149,24 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
141149 #cancelToken: cancelToken,
142150 },
143151 ),
144- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
145- _FakeParseNetworkResponse_1 (
146- this ,
147- Invocation .method (
148- #postBytes,
149- [path],
150- {
151- #data: data,
152- #options: options,
153- #onSendProgress: onSendProgress,
154- #cancelToken: cancelToken,
155- },
156- ),
157- ),
158- ),
159- )
160- as _i3.Future <_i2.ParseNetworkResponse >);
152+ ),
153+ ),
154+ ) as _i3.Future <_i2.ParseNetworkResponse >);
161155
162156 @override
163157 _i3.Future <_i2.ParseNetworkResponse > delete (
164158 String ? path, {
165159 _i2.ParseNetworkOptions ? options,
166160 }) =>
167161 (super .noSuchMethod (
162+ Invocation .method (#delete, [path], {#options: options}),
163+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
164+ _FakeParseNetworkResponse_1 (
165+ this ,
168166 Invocation .method (#delete, [path], {#options: options}),
169- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
170- _FakeParseNetworkResponse_1 (
171- this ,
172- Invocation .method (#delete, [path], {#options: options}),
173- ),
174- ),
175- )
176- as _i3.Future <_i2.ParseNetworkResponse >);
167+ ),
168+ ),
169+ ) as _i3.Future <_i2.ParseNetworkResponse >);
177170
178171 @override
179172 _i3.Future <_i2.ParseNetworkByteResponse > getBytes (
@@ -183,6 +176,18 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
183176 dynamic cancelToken,
184177 }) =>
185178 (super .noSuchMethod (
179+ Invocation .method (
180+ #getBytes,
181+ [path],
182+ {
183+ #options: options,
184+ #onReceiveProgress: onReceiveProgress,
185+ #cancelToken: cancelToken,
186+ },
187+ ),
188+ returnValue: _i3.Future <_i2.ParseNetworkByteResponse >.value (
189+ _FakeParseNetworkByteResponse_2 (
190+ this ,
186191 Invocation .method (
187192 #getBytes,
188193 [path],
@@ -192,20 +197,7 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
192197 #cancelToken: cancelToken,
193198 },
194199 ),
195- returnValue: _i3.Future <_i2.ParseNetworkByteResponse >.value (
196- _FakeParseNetworkByteResponse_2 (
197- this ,
198- Invocation .method (
199- #getBytes,
200- [path],
201- {
202- #options: options,
203- #onReceiveProgress: onReceiveProgress,
204- #cancelToken: cancelToken,
205- },
206- ),
207- ),
208- ),
209- )
210- as _i3.Future <_i2.ParseNetworkByteResponse >);
200+ ),
201+ ),
202+ ) as _i3.Future <_i2.ParseNetworkByteResponse >);
211203}
0 commit comments