| 278 | } |
| 279 | |
| 280 | static void FuzzSetDir(const std::string_view data) |
| 281 | { |
| 282 | Zip zip(SAMPLE_ZIP_PATH); |
| 283 | assert(zip.isValid()); |
| 284 | zip.setDir(std::string(data)); |
| 285 | for (const auto&[type, _]: zip.list(true)) { |
| 286 | (void)type; |
| 287 | assert(type == Zip::EntryType::FILE || type == Zip::EntryType::DIR); |
| 288 | } |
| 289 | for (const auto&[type, _]: zip.list(false)) { |
| 290 | (void)type; |
| 291 | assert(type == Zip::EntryType::FILE || type == Zip::EntryType::DIR); |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | static void FuzzFilename(const std::string_view data) |
| 296 | { |