MCPcopy Create free account
hub / github.com/ReadyTalk/avian / expectFind

Method expectFind

test/Regex.java:35–45  ·  view source on GitHub ↗
(String regex, String string,
      String... matches)

Source from the content-addressed store, hash-verified

33 }
34
35 private static void expectFind(String regex, String string,
36 String... matches)
37 {
38 Matcher matcher = getMatcher(regex, string);
39 int i = 0;
40 while (i < matches.length) {
41 expect(matcher.find());
42 expect(matches[i++].equals(matcher.group()));
43 }
44 expect(!matcher.find());
45 }
46
47 private static void expectSplit(String regex, String string,
48 String... list)

Callers 1

mainMethod · 0.95

Calls 5

getMatcherMethod · 0.95
expectMethod · 0.95
findMethod · 0.95
groupMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected