MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_archive_manifest_iterators

Function test_archive_manifest_iterators

atomic-repository/src/archive.rs:1040–1048  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected