Helper function to read file content
| 38 | |
| 39 | // Helper function to read file content |
| 40 | inline std::string read_file(const std::string& filename) { |
| 41 | std::ifstream file(filename); |
| 42 | if (!file.is_open()) { |
| 43 | return ""; |
| 44 | } |
| 45 | std::ostringstream ss; |
| 46 | ss << file.rdbuf(); |
| 47 | return ss.str(); |
| 48 | } |
| 49 | |
| 50 | // Get the source directory of the current test file |
| 51 | inline std::string source_dir() { |
no test coverage detected