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

Method builder_numericPort

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

Source from the content-addressed store, hash-verified

461 }
462
463 @Test
464 public void builder_numericPort() throws URISyntaxException {
465 Uri uri = Uri.newBuilder().setScheme("scheme").setHost("host").setPort(80).build();
466 assertThat(uri.toString()).isEqualTo("scheme://host:80");
467 }
468
469 @Test
470 public void builder_ipv6Literal() throws URISyntaxException {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected