MCPcopy Create free account
hub / github.com/chanced/jsonptr / pointerbuf_try_from

Function pointerbuf_try_from

src/pointer.rs:1743–1749  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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"))]

Callers

nothing calls this directly

Calls 1

from_tokensFunction · 0.85

Tested by

no test coverage detected