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

Function parse_error

src/diagnostic.rs:269–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 #[test]
268 #[cfg(feature = "miette")]
269 fn parse_error() {
270 let invalid = "/foo/bar/invalid~3~encoding/cannot/reach";
271 let report = Pointer::parse(invalid).diagnose(invalid).unwrap_err();
272
273 println!("{:?}", miette::Report::from(report));
274
275 let report = PointerBuf::parse("/foo/bar/invalid~3~encoding/cannot/reach").unwrap_err();
276
277 let report = miette::Report::from(report);
278 println!("{report:?}");
279 }
280}

Callers

nothing calls this directly

Calls 3

parseFunction · 0.85
fromFunction · 0.85
diagnoseMethod · 0.80

Tested by

no test coverage detected