org.openbakery.test.TestClass.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xcode-plugin Show documentation
Show all versions of xcode-plugin Show documentation
XCode-Plugin is a plugin to allow custom XCode projects to build as generated by CMake
package org.openbakery.test
class TestClass {
String name
List results = []
int numberSuccess() {
int success = 0;
for (TestResult result in results) {
if (result.success) {
success++
}
}
return success;
}
int numberErrors() {
int errors = 0;
for (TestResult result in results) {
if (!result.success) {
errors++
}
}
return errors;
}
@Override
public java.lang.String toString() {
return "TestClass{" +
"name='" + name + '\'' +
", results=" + results +
'}';
}
}