| 45 | } |
| 46 | |
| 47 | std::string get_bad_data_dir() { |
| 48 | // PARQUET_TEST_DATA should point to ARROW_HOME/cpp/submodules/parquet-testing/data |
| 49 | // so need to reach one folder up to access the "bad_data" folder. |
| 50 | std::string data_dir(get_data_dir()); |
| 51 | std::stringstream ss; |
| 52 | ss << data_dir << "/../bad_data"; |
| 53 | return ss.str(); |
| 54 | } |
| 55 | |
| 56 | std::string get_data_file(const std::string& filename, bool is_good) { |
| 57 | std::stringstream ss; |
no test coverage detected