()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected