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

Method verify

test/StringBuilderTest.java:11–16  ·  view source on GitHub ↗
(String srcStr, int iterations, String result)

Source from the content-addressed store, hash-verified

9 }
10
11 private static void verify(String srcStr, int iterations, String result) {
12 int expectedLength = srcStr.length() * iterations;
13 if (result.length() != expectedLength) {
14 throw new IllegalStateException("Incorrect length: " + result.length() + " vs " + expectedLength);
15 }
16 }
17
18 private static void verify(String expected, String actual) {
19 if (! expected.equals(actual)) {

Callers 3

verifyAppendStrLengthMethod · 0.95
verifySubstringMethod · 0.95

Calls 2

lengthMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected