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

Method parse_emptyPathWithAuthority

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

Source from the content-addressed store, hash-verified

120 }
121
122 @Test
123 public void parse_emptyPathWithAuthority() throws URISyntaxException {
124 Uri uri = Uri.parse("scheme://authority");
125 assertThat(uri.getScheme()).isEqualTo("scheme");
126 assertThat(uri.getAuthority()).isEqualTo("authority");
127 assertThat(uri.getPath()).isEmpty();
128 assertThat(uri.getRawQuery()).isNull();
129 assertThat(uri.getFragment()).isNull();
130 assertThat(uri.toString()).isEqualTo("scheme://authority");
131 assertThat(uri.isAbsolute()).isTrue();
132 assertThat(uri.isPathAbsolute()).isFalse();
133 assertThat(uri.isPathRootless()).isFalse();
134 }
135
136 @Test
137 public void parse_rootless() throws URISyntaxException {

Callers

nothing calls this directly

Calls 11

parseMethod · 0.95
getSchemeMethod · 0.95
getAuthorityMethod · 0.95
getPathMethod · 0.95
getRawQueryMethod · 0.95
getFragmentMethod · 0.95
toStringMethod · 0.95
isAbsoluteMethod · 0.95
isPathAbsoluteMethod · 0.95
isPathRootlessMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected