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

Method parse_emptyUserInfo

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

Source from the content-addressed store, hash-verified

176 }
177
178 @Test
179 public void parse_emptyUserInfo() {
180 Uri uri = Uri.create("scheme://@host");
181 assertThat(uri.getScheme()).isEqualTo("scheme");
182 assertThat(uri.getAuthority()).isEqualTo("@host");
183 assertThat(uri.getHost()).isEqualTo("host");
184 assertThat(uri.getUserInfo()).isEmpty();
185 assertThat(uri.toString()).isEqualTo("scheme://@host");
186 }
187
188 @Test
189 public void parse_emptyPort() {

Callers

nothing calls this directly

Calls 7

createMethod · 0.95
getSchemeMethod · 0.95
getAuthorityMethod · 0.95
getHostMethod · 0.95
getUserInfoMethod · 0.95
toStringMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected