| 11 | #include <vector> |
| 12 | |
| 13 | std::string loadFailureFile(const std::string &type, int index) { |
| 14 | std::string fileName(TEST_FILE_FOLDER "/fuzzFail/"); |
| 15 | fileName.append(type); |
| 16 | fileName += std::to_string(index); |
| 17 | std::ifstream crashFile(fileName, std::ios::in | std::ios::binary); |
| 18 | if(crashFile) { |
| 19 | std::vector<char> buffer(std::istreambuf_iterator<char>(crashFile), {}); |
| 20 | |
| 21 | std::string cdata(buffer.begin(), buffer.end()); |
| 22 | return cdata; |
| 23 | } |
| 24 | return std::string{}; |
| 25 | } |
| 26 | |
| 27 | TEST_CASE("app_fail") { |
| 28 | CLI::FuzzApp fuzzdata; |
no test coverage detected