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

Function test_path_parent

atomic-core/src/output/memory.rs:1141–1147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1139
1140 #[test]
1141 fn test_path_parent() {
1142 assert_eq!(path_parent("a/b/c"), Some("a/b".to_string()));
1143 assert_eq!(path_parent("a/b"), Some("a".to_string()));
1144 assert_eq!(path_parent("a"), None);
1145 assert_eq!(path_parent(""), None);
1146 assert_eq!(path_parent("a/b/"), Some("a".to_string()));
1147 }
1148
1149 #[test]
1150 fn test_list_directory_contents() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected