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

Function get_full_range

src/pointer/slice.rs:359–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

357
358 #[test]
359 fn get_full_range() {
360 let ptr = Pointer::from_static("/foo/bar");
361 let s = ptr.get(..);
362 assert_eq!(s, Some(ptr));
363
364 let ptr = Pointer::from_static("/");
365 let s = ptr.get(..);
366 assert_eq!(s, Some(ptr));
367
368 let ptr = Pointer::from_static("");
369 let s = ptr.get(..);
370 assert_eq!(s, Some(ptr));
371 }
372
373 #[allow(clippy::reversed_empty_ranges)]
374 #[test]

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected