Record Class LineCoverage
java.lang.Object
java.lang.Record
org.ek9lang.cli.coverage.model.LineCoverage
- Record Components:
covered- Whether this line was executed during testsbranchType- The type of branch if this is a branch line (e.g., "BRANCH_TRUE", "BRANCH_FALSE"), or nullmodule- The module name this line belongs to
-
Constructor Summary
ConstructorsConstructorDescriptionLineCoverage(boolean covered, String branchType, String module) Creates an instance of aLineCoveragerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebranchTyperecord component.booleancovered()Returns the value of thecoveredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisBranch()Check if this line represents a branch.module()Returns the value of themodulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LineCoverage
Creates an instance of aLineCoveragerecord class.- Parameters:
covered- the value for thecoveredrecord componentbranchType- the value for thebranchTyperecord componentmodule- the value for themodulerecord component
-
-
Method Details
-
isBranch
public boolean isBranch()Check if this line represents a branch.- Returns:
- true if this is a branch line
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
covered
-
branchType
Returns the value of thebranchTyperecord component.- Returns:
- the value of the
branchTyperecord component
-
module
-