MCPcopy Index your code
hub / github.com/bazelbuild/bazel / expected

Method expected

src/test/java/net/starlark/java/eval/ScriptTest.java:336–344  ·  view source on GitHub ↗
(Map<Pattern, Integer> expectations, String message)

Source from the content-addressed store, hash-verified

334 }
335
336 private static boolean expected(Map<Pattern, Integer> expectations, String message) {
337 for (Pattern pattern : expectations.keySet()) {
338 if (pattern.matcher(message).find()) {
339 expectations.remove(pattern);
340 return true;
341 }
342 }
343 return false;
344 }
345
346 private static int newlines(String s) {
347 int n = 0;

Callers 1

mainMethod · 0.95

Calls 4

keySetMethod · 0.45
findMethod · 0.45
matcherMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected