()
| 799 | |
| 800 | #[test] |
| 801 | fn test_location_set_leaf_name() { |
| 802 | let mut location = Location::new("drv:/").unwrap(); |
| 803 | location.set_leaf_name("foo"); |
| 804 | assert_eq!("DRV:/foo", format!("{}", location)); |
| 805 | |
| 806 | let mut location = Location::new("drv:").unwrap(); |
| 807 | location.set_leaf_name("foo"); |
| 808 | assert_eq!("DRV:/foo", format!("{}", location)); |
| 809 | |
| 810 | let mut location = Location::new("/bar").unwrap(); |
| 811 | location.set_leaf_name("foo"); |
| 812 | assert_eq!("/foo", format!("{}", location)); |
| 813 | |
| 814 | let mut location = Location::new("bar").unwrap(); |
| 815 | location.set_leaf_name("foo"); |
| 816 | assert_eq!("foo", format!("{}", location)); |
| 817 | } |
| 818 | |
| 819 | #[test] |
| 820 | fn test_location_set_extension() { |
nothing calls this directly
no test coverage detected