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

Method parse_emptyPath

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

Source from the content-addressed store, hash-verified

148 }
149
150 @Test
151 public void parse_emptyPath() throws URISyntaxException {
152 Uri uri = Uri.parse("scheme:");
153 assertThat(uri.getScheme()).isEqualTo("scheme");
154 assertThat(uri.getAuthority()).isNull();
155 assertThat(uri.getPath()).isEmpty();
156 assertThat(uri.getRawQuery()).isNull();
157 assertThat(uri.getFragment()).isNull();
158 assertThat(uri.toString()).isEqualTo("scheme:");
159 assertThat(uri.isAbsolute()).isTrue();
160 assertThat(uri.isPathAbsolute()).isFalse();
161 assertThat(uri.isPathRootless()).isFalse();
162 }
163
164 @Test
165 public void parse_emptyQuery() {

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