MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / parseKind

Method parseKind

src/main/java/wycc/util/testing/TestFile.java:353–361  ·  view source on GitHub ↗
(String line)

Source from the content-addressed store, hash-verified

351 }
352
353 private static Action.Kind parseKind(String line) {
354 if(line.equals(">>>")) {
355 return Action.Kind.INSERT;
356 } else if(line.equals("<<<")) {
357 return Action.Kind.REMOVE;
358 } else {
359 throw new IllegalArgumentException("invalid file");
360 }
361 }
362
363 private static Error parseError(String line) {
364 String[] split = line.split(" ");

Callers 1

parseActionMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected