MCPcopy Create free account
hub / github.com/grpc/grpc-java / parse_decodingPercent

Method parse_decodingPercent

api/src/test/java/io/grpc/UriTest.java:336–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 }
335
336 @Test
337 public void parse_decodingPercent() throws URISyntaxException {
338 Uri uri = Uri.parse("s://a/p%2520ath#f%25ragment");
339 assertThat(uri.getPath()).isEqualTo("/p%20ath");
340 assertThat(uri.getFragment()).isEqualTo("f%ragment");
341 }
342
343 @Test
344 public void parse_invalidPercentEncoding_throws() {

Callers

nothing calls this directly

Calls 3

parseMethod · 0.95
getPathMethod · 0.95
getFragmentMethod · 0.95

Tested by

no test coverage detected