| Line | Source | Count | 
| 1 |  | - | 
| 2 |  | - | 
| 3 |  | - | 
| 4 |  | - | 
| 5 |  | - | 
| 6 |  | - | 
| 7 |  | - | 
| 8 |  | - | 
| 9 |  | - | 
| 10 |  | - | 
| 11 |  | - | 
| 12 |  | - | 
| 13 |  | - | 
| 14 |  | - | 
| 15 |  | - | 
| 16 |  | - | 
| 17 |  | - | 
| 18 |  | - | 
| 19 |  | - | 
| 20 |  | - | 
| 21 |  | - | 
| 22 |  | - | 
| 23 |  | - | 
| 24 |  | - | 
| 25 |  | - | 
| 26 |  | - | 
| 27 |  | - | 
| 28 |  | - | 
| 29 |  | - | 
| 30 |  | - | 
| 31 |  | - | 
| 32 |  | - | 
| 33 |  | - | 
| 34 |  | - | 
| 35 |  | - | 
| 36 |  | - | 
| 37 |  | - | 
| 38 |  | - | 
| 39 |  | - | 
| 40 | #include "qcsvbenchmarklogger_p.h" | - | 
| 41 | #include "qtestresult_p.h" | - | 
| 42 | #include "qbenchmark_p.h" | - | 
| 43 |  | - | 
| 44 | QCsvBenchmarkLogger::QCsvBenchmarkLogger(const char *filename) | - | 
| 45 |     : QAbstractTestLogger(filename) | - | 
| 46 | { | - | 
| 47 | }executed 8 times by 1 test:  end of blockExecuted by:- tst_selftests - unknown status
 
    | 8 | 
| 48 |  | - | 
| 49 | QCsvBenchmarkLogger::~QCsvBenchmarkLogger() | - | 
| 50 | { | - | 
| 51 | } | - | 
| 52 |  | - | 
| 53 | void QCsvBenchmarkLogger::startLogging() | - | 
| 54 | { | - | 
| 55 |      | - | 
| 56 | } | - | 
| 57 |  | - | 
| 58 | void QCsvBenchmarkLogger::stopLogging() | - | 
| 59 | { | - | 
| 60 |      | - | 
| 61 | } | - | 
| 62 |  | - | 
| 63 | void QCsvBenchmarkLogger::enterTestFunction(const char *) | - | 
| 64 | { | - | 
| 65 |      | - | 
| 66 | } | - | 
| 67 |  | - | 
| 68 | void QCsvBenchmarkLogger::leaveTestFunction() | - | 
| 69 | { | - | 
| 70 |      | - | 
| 71 | } | - | 
| 72 |  | - | 
| 73 | void QCsvBenchmarkLogger::addIncident(QAbstractTestLogger::IncidentTypes, const char *, const char *, int) | - | 
| 74 | { | - | 
| 75 |      | - | 
| 76 | } | - | 
| 77 |  | - | 
| 78 | void QCsvBenchmarkLogger::addBenchmarkResult(const QBenchmarkResult &result) | - | 
| 79 | { | - | 
| 80 |     const char *fn = QTestResult::currentTestFunction() ? QTestResult::currentTestFunction()| TRUE | evaluated 32 times by 1 testEvaluated by:- tst_selftests - unknown status
 
   |  | FALSE | never evaluated |  
  | 0-32 | 
| 81 |         : "UnknownTestFunc"; | - | 
| 82 |     const char *tag = QTestResult::currentDataTag() ? QTestResult::currentDataTag() : "";| TRUE | evaluated 28 times by 1 testEvaluated by:- tst_selftests - unknown status
 
   |  | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
 
   |  
  | 4-28 | 
| 83 |     const char *gtag = QTestResult::currentGlobalDataTag()| TRUE | never evaluated |  | FALSE | evaluated 32 times by 1 testEvaluated by:- tst_selftests - unknown status
 
   |  
  | 0-32 | 
| 84 |                      ? QTestResult::currentGlobalDataTag() | - | 
| 85 |                      : ""; | - | 
| 86 |     const char *filler = (tag[0] && gtag[0]) ? ":" : "";| TRUE | evaluated 28 times by 1 testEvaluated by:- tst_selftests - unknown status
 
   |  | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
 
   |  
 | TRUE | never evaluated |  | FALSE | evaluated 28 times by 1 testEvaluated by:- tst_selftests - unknown status
 
   |  
  | 0-28 | 
| 87 |  | - | 
| 88 |     const char *metric = QTest::benchmarkMetricName(result.metric); | - | 
| 89 |  | - | 
| 90 |     char buf[1024]; | - | 
| 91 |      | - | 
| 92 |     qsnprintf(buf, sizeof(buf), "\"%s\",\"%s%s%s\",\"%s\",%.13g,%.13g,%u\n", | - | 
| 93 |               fn, gtag, filler, tag, metric, | - | 
| 94 |               result.value / result.iterations, result.value, result.iterations); | - | 
| 95 |     outputString(buf); | - | 
| 96 | }executed 32 times by 1 test:  end of blockExecuted by:- tst_selftests - unknown status
 
    | 32 | 
| 97 |  | - | 
| 98 | void QCsvBenchmarkLogger::addMessage(QAbstractTestLogger::MessageTypes, const QString &, const char *, int) | - | 
| 99 | { | - | 
| 100 |      | - | 
| 101 | } | - | 
 |  |  |