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

Method builder_ipv6Literal

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

Source from the content-addressed store, hash-verified

467 }
468
469 @Test
470 public void builder_ipv6Literal() throws URISyntaxException {
471 Uri uri =
472 Uri.newBuilder()
473 .setScheme("scheme")
474 .setHost(InetAddresses.forString("2001:4860:4860::8844"))
475 .build();
476 assertThat(uri.toString()).isEqualTo("scheme://[2001:4860:4860::8844]");
477 }
478
479 @Test
480 public void builder_ipv6ScopedLiteral_numeric() throws UnknownHostException {

Callers

nothing calls this directly

Calls 6

newBuilderMethod · 0.95
toStringMethod · 0.95
setHostMethod · 0.80
setSchemeMethod · 0.80
forStringMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected