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

Function test_record_item_deep_path

atomic-core/src/record/item.rs:1021–1029  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1019
1020 #[test]
1021 fn test_record_item_deep_path() {
1022 let item = RecordItem::new(
1023 PathBuf::from("a/b/c/d/e/file.txt"),
1024 Inode::new(1),
1025 Position::ROOT,
1026 );
1027 assert_eq!(item.basename(), "file.txt");
1028 assert_eq!(item.path_string(), "a/b/c/d/e/file.txt");
1029 }
1030
1031 #[test]
1032 fn test_record_item_equality() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected