()
| 998 | |
| 999 | #[test_case] |
| 1000 | fn path_components() { |
| 1001 | let mut components = Path::new("/tmp/foo.txt").components(); |
| 1002 | |
| 1003 | assert_eq!(components.next(), Some(Component::RootDir)); |
| 1004 | assert_eq!(components.next(), Some(Component::Normal(OsStr::new("tmp")))); |
| 1005 | assert_eq!(components.next(), Some(Component::Normal(OsStr::new("foo.txt")))); |
| 1006 | assert_eq!(components.next(), None); |
| 1007 | } |
| 1008 | |
| 1009 | #[test_case] |
| 1010 | fn path_file_name() { |
nothing calls this directly
no test coverage detected