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

Method toString_percentEncoding

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

Source from the content-addressed store, hash-verified

412 }
413
414 @Test
415 public void toString_percentEncoding() throws URISyntaxException {
416 Uri uri =
417 Uri.newBuilder()
418 .setScheme("s")
419 .setHost("a b")
420 .setPath("/p ath")
421 .setRawQuery("q%20uery")
422 .setFragment("f ragment")
423 .build();
424 assertThat(uri.toString()).isEqualTo("s://a%20b/p%20ath?q%20uery#f%20ragment");
425 }
426
427 @Test
428 public void parse_transparentRoundTrip_ipLiteral() {

Callers

nothing calls this directly

Calls 8

newBuilderMethod · 0.95
toStringMethod · 0.95
setFragmentMethod · 0.80
setRawQueryMethod · 0.80
setPathMethod · 0.80
setHostMethod · 0.80
setSchemeMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected