---------------------------------------------------------------------
| 26 | { |
| 27 | //--------------------------------------------------------------------- |
| 28 | std::unique_ptr<TestHelper::TemporaryPath> CreateFile(const std::vector<std::string>& lines) |
| 29 | { |
| 30 | auto path = std::make_unique<TestHelper::TemporaryPath>(); |
| 31 | std::ofstream ofs(path->GetPath().string(), std::ios::binary); |
| 32 | |
| 33 | for (const auto& line : lines) |
| 34 | ofs.write(line.c_str(), line.size()); |
| 35 | return path; |
| 36 | } |
| 37 | |
| 38 | //--------------------------------------------------------------------- |
| 39 | std::vector<std::string> GetLines(const std::filesystem::path& path) |
no outgoing calls
no test coverage detected