| 60 | } |
| 61 | |
| 62 | std::string write(const std::string& dir, const std::string& tag, const std::vector<uint8_t>& b) { |
| 63 | const std::string path = dir + "/fnx_gguf_test_" + tag + ".gguf"; |
| 64 | FILE* f = std::fopen(path.c_str(), "wb"); |
| 65 | if (!f || std::fwrite(b.data(), 1, b.size(), f) != b.size() || std::fclose(f) != 0) |
| 66 | throw std::runtime_error("cannot write " + path); |
| 67 | return path; |
| 68 | } |
| 69 | |
| 70 | int failures = 0; |
| 71 |
no test coverage detected