| 389 | } |
| 390 | |
| 391 | void CompressFile(const char* fname) { |
| 392 | std::string fullinput; |
| 393 | CHECK_OK(file::GetContents(fname, &fullinput, file::Defaults())); |
| 394 | |
| 395 | std::string compressed; |
| 396 | Compress(fullinput.data(), fullinput.size(), SNAPPY, &compressed, false); |
| 397 | |
| 398 | CHECK_OK(file::SetContents(std::string(fname).append(".comp"), compressed, |
| 399 | file::Defaults())); |
| 400 | } |
| 401 | |
| 402 | void UncompressFile(const char* fname) { |
| 403 | std::string fullinput; |
no test coverage detected