()
| 1741 | |
| 1742 | #[test] |
| 1743 | fn pointerbuf_try_from() { |
| 1744 | let ptr = PointerBuf::from_tokens(["foo", "bar", "~/"]); |
| 1745 | |
| 1746 | assert_eq!(PointerBuf::try_from("/foo/bar/~0~1").unwrap(), ptr); |
| 1747 | let into: PointerBuf = "/foo/bar/~0~1".try_into().unwrap(); |
| 1748 | assert_eq!(ptr, into); |
| 1749 | } |
| 1750 | |
| 1751 | #[test] |
| 1752 | #[cfg(all(feature = "serde", feature = "json"))] |
nothing calls this directly
no test coverage detected