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

Method parse_ipv6Literal_withPort

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

Source from the content-addressed store, hash-verified

63 }
64
65 @Test
66 public void parse_ipv6Literal_withPort() throws URISyntaxException {
67 Uri uri = Uri.parse("scheme://[2001:db8::7]:012345");
68 assertThat(uri.getAuthority()).isEqualTo("[2001:db8::7]:012345");
69 assertThat(uri.getRawHost()).isEqualTo("[2001:db8::7]");
70 assertThat(uri.getHost()).isEqualTo("[2001:db8::7]");
71 assertThat(uri.getRawPort()).isEqualTo("012345");
72 assertThat(uri.getPort()).isEqualTo(12345);
73 }
74
75 @Test
76 public void parse_ipv6Literal_noPort() throws URISyntaxException {

Callers

nothing calls this directly

Calls 6

parseMethod · 0.95
getAuthorityMethod · 0.95
getRawHostMethod · 0.95
getHostMethod · 0.95
getRawPortMethod · 0.95
getPortMethod · 0.95

Tested by

no test coverage detected