Skip to content

Commit 0dc232b

Browse files
committed
🎨 Added group numeric functions
1 parent b6999e2 commit 0dc232b

File tree

4 files changed

+246
-251
lines changed

4 files changed

+246
-251
lines changed

lib/src/parameterized_group_numeric.dart

Lines changed: 63 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void parameterizedGroup1<A1>(
2626
dynamic tags,
2727
Map<String, dynamic>? onPlatform,
2828
int? retry,
29-
})=>
29+
}) =>
3030
parameterizedGroup(
3131
description,
3232
values,
@@ -41,7 +41,6 @@ void parameterizedGroup1<A1>(
4141
retry: retry,
4242
);
4343

44-
4544
/// Parameterized group with 2 input arguments. See [parameterizedGroup] for more info.
4645
@isTestGroup
4746
void parameterizedGroup2<A1, A2>(
@@ -116,7 +115,6 @@ void parameterizedGroup3<A1, A2, A3>(
116115
retry: retry,
117116
);
118117

119-
120118
/// Parameterized group with 4 input arguments. See [parameterizedGroup] for more info.
121119
@isTestGroup
122120
void parameterizedGroup4<A1, A2, A3, A4>(
@@ -139,7 +137,7 @@ void parameterizedGroup4<A1, A2, A3, A4>(
139137
dynamic tags,
140138
Map<String, dynamic>? onPlatform,
141139
int? retry,
142-
})=>
140+
}) =>
143141
parameterizedGroup(
144142
description,
145143
values,
@@ -154,7 +152,6 @@ void parameterizedGroup4<A1, A2, A3, A4>(
154152
retry: retry,
155153
);
156154

157-
158155
/// Parameterized group with 5 input arguments. See [parameterizedGroup] for more info.
159156
@isTestGroup
160157
void parameterizedGroup5<A1, A2, A3, A4, A5>(
@@ -192,7 +189,6 @@ void parameterizedGroup5<A1, A2, A3, A4, A5>(
192189
retry: retry,
193190
);
194191

195-
196192
/// Parameterized group with 6 input arguments. See [parameterizedGroup] for more info.
197193
@isTestGroup
198194
void parameterizedGroup6<A1, A2, A3, A4, A5, A6>(
@@ -230,7 +226,6 @@ void parameterizedGroup6<A1, A2, A3, A4, A5, A6>(
230226
retry: retry,
231227
);
232228

233-
234229
/// Parameterized group with 7 input arguments. See [parameterizedGroup] for more info.
235230
@isTestGroup
236231
void parameterizedGroup7<A1, A2, A3, A4, A5, A6, A7>(
@@ -271,26 +266,26 @@ void parameterizedGroup7<A1, A2, A3, A4, A5, A6, A7>(
271266
/// Parameterized group with 8 input arguments. See [parameterizedGroup] for more info.
272267
@isTestGroup
273268
void parameterizedGroup8<A1, A2, A3, A4, A5, A6, A7, A8>(
274-
/// Group description.
275-
Object description,
276-
277-
/// List of group values. For each values in the list a group test will be executed.
278-
Iterable<dynamic> values,
279-
280-
/// The test body which is executed for each group value.
281-
/// See [TestParameters] for more info on different bodies.
282-
dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8) body, {
283-
dynamic Function()? setUp,
284-
285-
/// Provide a tearDown function to the `group` test.
286-
dynamic Function()? tearDown,
287-
String? testOn,
288-
Timeout? timeout,
289-
dynamic skip,
290-
dynamic tags,
291-
Map<String, dynamic>? onPlatform,
292-
int? retry,
293-
}) =>
269+
/// Group description.
270+
Object description,
271+
272+
/// List of group values. For each values in the list a group test will be executed.
273+
Iterable<dynamic> values,
274+
275+
/// The test body which is executed for each group value.
276+
/// See [TestParameters] for more info on different bodies.
277+
dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8) body, {
278+
dynamic Function()? setUp,
279+
280+
/// Provide a tearDown function to the `group` test.
281+
dynamic Function()? tearDown,
282+
String? testOn,
283+
Timeout? timeout,
284+
dynamic skip,
285+
dynamic tags,
286+
Map<String, dynamic>? onPlatform,
287+
int? retry,
288+
}) =>
294289
parameterizedGroup(
295290
description,
296291
values,
@@ -308,26 +303,26 @@ void parameterizedGroup8<A1, A2, A3, A4, A5, A6, A7, A8>(
308303
/// Parameterized group with 9 input arguments. See [parameterizedGroup] for more info.
309304
@isTestGroup
310305
void parameterizedGroup9<A1, A2, A3, A4, A5, A6, A7, A8, A9>(
311-
/// Group description.
312-
Object description,
313-
314-
/// List of group values. For each values in the list a group test will be executed.
315-
Iterable<dynamic> values,
316-
317-
/// The test body which is executed for each group value.
318-
/// See [TestParameters] for more info on different bodies.
319-
dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9) body, {
320-
dynamic Function()? setUp,
321-
322-
/// Provide a tearDown function to the `group` test.
323-
dynamic Function()? tearDown,
324-
String? testOn,
325-
Timeout? timeout,
326-
dynamic skip,
327-
dynamic tags,
328-
Map<String, dynamic>? onPlatform,
329-
int? retry,
330-
}) =>
306+
/// Group description.
307+
Object description,
308+
309+
/// List of group values. For each values in the list a group test will be executed.
310+
Iterable<dynamic> values,
311+
312+
/// The test body which is executed for each group value.
313+
/// See [TestParameters] for more info on different bodies.
314+
dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9) body, {
315+
dynamic Function()? setUp,
316+
317+
/// Provide a tearDown function to the `group` test.
318+
dynamic Function()? tearDown,
319+
String? testOn,
320+
Timeout? timeout,
321+
dynamic skip,
322+
dynamic tags,
323+
Map<String, dynamic>? onPlatform,
324+
int? retry,
325+
}) =>
331326
parameterizedGroup(
332327
description,
333328
values,
@@ -345,26 +340,26 @@ void parameterizedGroup9<A1, A2, A3, A4, A5, A6, A7, A8, A9>(
345340
/// Parameterized group with 10 input arguments. See [parameterizedGroup] for more info.
346341
@isTestGroup
347342
void parameterizedGroup10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>(
348-
/// Group description.
349-
Object description,
350-
351-
/// List of group values. For each values in the list a group test will be executed.
352-
Iterable<dynamic> values,
353-
354-
/// The test body which is executed for each group value.
355-
/// See [TestParameters] for more info on different bodies.
356-
dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) body, {
357-
dynamic Function()? setUp,
358-
359-
/// Provide a tearDown function to the `group` test.
360-
dynamic Function()? tearDown,
361-
String? testOn,
362-
Timeout? timeout,
363-
dynamic skip,
364-
dynamic tags,
365-
Map<String, dynamic>? onPlatform,
366-
int? retry,
367-
}) =>
343+
/// Group description.
344+
Object description,
345+
346+
/// List of group values. For each values in the list a group test will be executed.
347+
Iterable<dynamic> values,
348+
349+
/// The test body which is executed for each group value.
350+
/// See [TestParameters] for more info on different bodies.
351+
dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) body, {
352+
dynamic Function()? setUp,
353+
354+
/// Provide a tearDown function to the `group` test.
355+
dynamic Function()? tearDown,
356+
String? testOn,
357+
Timeout? timeout,
358+
dynamic skip,
359+
dynamic tags,
360+
Map<String, dynamic>? onPlatform,
361+
int? retry,
362+
}) =>
368363
parameterizedGroup(
369364
description,
370365
values,
@@ -377,4 +372,4 @@ void parameterizedGroup10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>(
377372
tags: tags,
378373
onPlatform: onPlatform,
379374
retry: retry,
380-
);
375+
);

lib/src/parameterized_test_base.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ void parameterizedTest(
5959
retry: retry,
6060
),
6161
).executeTests(body);
62-
}
62+
}

0 commit comments

Comments
 (0)