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

Function test_archive_entry_file

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

Source from the content-addressed store, hash-verified

971
972 #[test]
973 fn test_archive_entry_file() {
974 let entry = ArchiveEntry::file("src/main.rs", 1024);
975
976 assert_eq!(entry.path, "src/main.rs");
977 assert!(!entry.is_directory);
978 assert_eq!(entry.size, 1024);
979 assert_eq!(entry.mode, 0o644);
980 }
981
982 #[test]
983 fn test_archive_entry_directory() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected