Record Class ShowTestsSummaryAtEndPlugin.TaskResult
java.lang.Object
java.lang.Record
com.carrotsearch.gradle.buildinfra.testing.ShowTestsSummaryAtEndPlugin.TaskResult
- Enclosing class:
ShowTestsSummaryAtEndPlugin
public static record ShowTestsSummaryAtEndPlugin.TaskResult(long tests, long failures, long skipped)
extends Record
Results of a single test task.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskResult(long tests, long failures, long skipped) Creates an instance of aTaskResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.longskipped()Returns the value of theskippedrecord component.longtests()Returns the value of thetestsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskResult
public TaskResult(long tests, long failures, long skipped) Creates an instance of aTaskResultrecord class.- Parameters:
tests- the value for thetestsrecord componentfailures- the value for thefailuresrecord componentskipped- the value for theskippedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
tests
public long tests()Returns the value of thetestsrecord component.- Returns:
- the value of the
testsrecord component
-
failures
public long failures()Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-
skipped
public long skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-