| 62 | |
| 63 | |
| 64 | void SpeedTest::start() |
| 65 | { |
| 66 | QString filePath = Settings::getApplicationDirPath() + "/SpeedTest.csv"; |
| 67 | |
| 68 | resultFile.setFileName( filePath ); |
| 69 | |
| 70 | bool IsFileExists = false; |
| 71 | if( resultFile.exists() ){ |
| 72 | IsFileExists = true; |
| 73 | } |
| 74 | |
| 75 | if(resultFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)){ |
| 76 | resultStream.setDevice(&resultFile); |
| 77 | |
| 78 | if( IsFileExists == false ){ |
| 79 | printHeader(); |
| 80 | } |
| 81 | |
| 82 | startTests(); |
| 83 | |
| 84 | }else{ |
| 85 | qWarning() << Q_FUNC_INFO << "Can't open file:" << filePath; |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | |
| 90 | void SpeedTest::printHeader() |
no test coverage detected