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

Method parse_emptyAuthority

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

Source from the content-addressed store, hash-verified

350 }
351
352 @Test
353 public void parse_emptyAuthority() {
354 Uri uri = Uri.create("file:///foo/bar");
355 assertThat(uri.getAuthority()).isEmpty();
356 assertThat(uri.getHost()).isEmpty();
357 assertThat(uri.getUserInfo()).isNull();
358 assertThat(uri.getPort()).isEqualTo(-1);
359 assertThat(uri.getPath()).isEqualTo("/foo/bar");
360 }
361
362 @Test
363 public void parse_pathSegments_empty() throws URISyntaxException {

Callers

nothing calls this directly

Calls 7

createMethod · 0.95
getAuthorityMethod · 0.95
getHostMethod · 0.95
getUserInfoMethod · 0.95
getPortMethod · 0.95
getPathMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected