void (boolean checkResult, boolean ensureNoErrorElements) { String name = getTestName(); try { parseFile(name, loadFile(name + "." + myFileExt)); if (checkResult) { checkResult(name, myFile); if (ensureNoErrorElements) { ensureNoErrorElements(); } } else { toParseTreeText(myFile, skipSpaces(), includeRanges()); } } catch (IOException e) { throw new RuntimeException(e); } }