* Load the test file as a binary string. */
| 68 | * Load the test file as a binary string. |
| 69 | */ |
| 70 | std::string LoadTestFile(const std::string &test_file_path) { |
| 71 | std::ifstream fin(test_file_path, std::ios::binary); |
| 72 | if (!fin) |
| 73 | throw std::runtime_error(std::string("Failed to open model file: ") + test_file_path); |
| 74 | std::stringstream ss; |
| 75 | ss << fin.rdbuf(); |
| 76 | return ss.str(); |
| 77 | } |
| 78 | |
| 79 | } // namespace |
| 80 |
no test coverage detected