in src/main/java/org/apache/sling/junit/scriptable/TestAllPaths.java [76:96]
public static boolean checkTest(String content) throws Exception {
final BufferedReader br = new BufferedReader(new StringReader(content));
String line = null;
int passedCount = 0;
while( (line = br.readLine()) != null) {
if(line.trim().length() == 0) {
// ignore
} else if(line.startsWith("#")) {
// ignore
} else if(line.trim().equals(PASSED) && passedCount == 0) {
passedCount++;
} else {
return false;
}
}
// if there are only empty lines and/or comments and no TEST_PASSED string, the test fails
if (passedCount == 0) {
return false;
}
return true;
}