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

Method builder_canSetRawAuthority

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

Source from the content-addressed store, hash-verified

696 }
697
698 @Test
699 public void builder_canSetRawAuthority() {
700 Uri uri = Uri.newBuilder().setScheme("http").setRawAuthority("user@host:1234").build();
701 assertThat(uri.getUserInfo()).isEqualTo("user");
702 assertThat(uri.getHost()).isEqualTo("host");
703 assertThat(uri.getPort()).isEqualTo(1234);
704 }
705
706 @Test
707 public void builder_setRawAuthorityPercentDecodes() {

Callers

nothing calls this directly

Calls 7

newBuilderMethod · 0.95
getUserInfoMethod · 0.95
getHostMethod · 0.95
getPortMethod · 0.95
setRawAuthorityMethod · 0.80
setSchemeMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected