()
| 1038 | |
| 1039 | #[test] |
| 1040 | fn test_archive_manifest_iterators() { |
| 1041 | let mut manifest = ArchiveManifest::new(); |
| 1042 | manifest.add(ArchiveEntry::file("a.txt", 10)); |
| 1043 | manifest.add(ArchiveEntry::directory("b/")); |
| 1044 | manifest.add(ArchiveEntry::file("c.txt", 20)); |
| 1045 | |
| 1046 | assert_eq!(manifest.files().count(), 2); |
| 1047 | assert_eq!(manifest.directories().count(), 1); |
| 1048 | } |
| 1049 | |
| 1050 | #[test] |
| 1051 | fn test_archive_manifest_sort() { |