MCPcopy Create free account
hub / github.com/dreamhead/moco / startsWith

Method startsWith

moco-core/src/main/java/com/github/dreamhead/moco/Moco.java:236–238  ·  view source on GitHub ↗
(final Resource resource)

Source from the content-addressed store, hash-verified

234 }
235
236 public static RequestMatcher startsWith(final Resource resource) {
237 return ApiUtils.startsWith(extractor(resource.id()), checkNotNull(resource, "Resource should not be null"));
238 }
239
240 public static <T> RequestMatcher startsWith(final RequestExtractor<T> extractor, final String expected) {
241 return ApiUtils.startsWith(checkNotNull(extractor, "Extractor should not be null"),

Callers 3

should_starts_withMethod · 0.45
should_run_as_proxyMethod · 0.45

Calls 5

startsWithMethod · 0.95
textMethod · 0.95
extractorMethod · 0.80
checkNotNullOrEmptyMethod · 0.80
idMethod · 0.65

Tested by 3

should_starts_withMethod · 0.36
should_run_as_proxyMethod · 0.36