4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /**
8
- * @SuppressWarnings(PHPMD.CyclomaticComplexity)
9
- * @SuppressWarnings(PHPMD.NPathComplexity)
10
- */
11
-
12
7
/**
13
8
* Generate aggregate report in CSV format based on JTL file.
14
9
*
@@ -32,7 +27,7 @@ function generateReport(array $mapping, callable $generateSummary, callable $row
32
27
$ args = getopt ('j:m:o:f ' );
33
28
if (empty ($ args ['j ' ]) || empty ($ args ['o ' ])) {
34
29
echo $ usageMessage ;
35
- exit ( 0 ) ;
30
+ return ;
36
31
}
37
32
38
33
list ($ jmeterData , $ executionTime ) = parseJmeterReport ($ args ['j ' ], isset ($ args ['f ' ]));
@@ -73,6 +68,7 @@ function parseMemoryUsageLog($memoryUsageReport)
73
68
* @param string $jmeterReport Path to the JTL report
74
69
* @param bool $includeErrors If true failed requests are included in report
75
70
* @return array First element - requests grouped by title, second - total execution time of the scenario
71
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
76
72
*/
77
73
function parseJmeterReport ($ jmeterReport , $ includeErrors )
78
74
{
@@ -117,6 +113,7 @@ function parseJmeterReport($jmeterReport, $includeErrors)
117
113
* @param array $memoryUsageData
118
114
* @param array $mappings
119
115
* @return array
116
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
120
117
*/
121
118
function prepareAggregatedResult (array $ jmeterData , array $ memoryUsageData , array $ mappings )
122
119
{
@@ -174,6 +171,7 @@ function ($a, $b) {
174
171
* @param callable $generateSummary
175
172
* @param callable $rowCallback [optional]
176
173
* @return void
174
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
177
175
*/
178
176
function parseReportAndWriteToCsv (
179
177
array $ aggregatedResult ,
0 commit comments