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

Function from_box_to_buf

src/pointer.rs:2340–2345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2338
2339 #[test]
2340 fn from_box_to_buf() {
2341 let subjectal = PointerBuf::parse("/foo/bar/0").unwrap();
2342 let boxed: Box<Pointer> = subjectal.clone().into();
2343 let unboxed = boxed.into_buf();
2344 assert_eq!(subjectal, unboxed);
2345 }
2346
2347 #[test]
2348 #[cfg(feature = "miette")]

Callers

nothing calls this directly

Calls 2

parseFunction · 0.85
into_bufMethod · 0.80

Tested by

no test coverage detected