()
| 987 | |
| 988 | #[test_case] |
| 989 | fn path_has_root() { |
| 990 | // Paths with root directory |
| 991 | assert!(Path::new("/etc/passwd").has_root()); |
| 992 | assert!(Path::new("/").has_root()); |
| 993 | |
| 994 | // Some paths without root |
| 995 | assert!(!Path::new("./etc/passwd").has_root()); |
| 996 | assert!(!Path::new(".").has_root()); |
| 997 | } |
| 998 | |
| 999 | #[test_case] |
| 1000 | fn path_components() { |
nothing calls this directly
no outgoing calls
no test coverage detected