| 127 | } |
| 128 | |
| 129 | void CreateFile(FileSystem* fs, const std::string& path, const std::string& data) { |
| 130 | ASSERT_OK_AND_ASSIGN(auto stream, fs->OpenOutputStream(path)); |
| 131 | ASSERT_OK(stream->Write(data)); |
| 132 | ASSERT_OK(stream->Close()); |
| 133 | } |
| 134 | |
| 135 | void SortInfos(std::vector<FileInfo>* infos) { |
| 136 | std::sort(infos->begin(), infos->end(), FileInfo::ByPath{}); |
no test coverage detected