Record Class ResponseCoverageCell
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.trackerlens.tracker.ResponseCoverageCell
- Record Components:
verb- the HTTP verb, e.g."GET"path- the endpoint's path template, e.g."/v1/foobars"responseCode- the response code, e.g."200"testCount- the number of contract tests currently detected to cover this response codecovered-truewhentestCount > 0
public record ResponseCoverageCell(String verb, String path, String responseCode, int testCount, boolean covered)
extends Record
One cell of the response-coverage snapshot matrix: a currently-declared (verb, path,
responseCode) triple, its current test count, and whether that count is positive.
Deliberately not a LifecycleRecord: testCount is a live gauge with no
preserved history (unlike every timestamp LifecycleRecord carries), and a matrix needs
verb/path/responseCode as three independently pivotable fields rather
than fused into one label string - see ResponseCoverageMatrixReader.
-
Constructor Summary
ConstructorsConstructorDescriptionResponseCoverageCell(String verb, String path, String responseCode, int testCount, boolean covered) Creates an instance of aResponseCoverageCellrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancovered()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.path()Returns the value of thepathrecord component.Returns the value of theresponseCoderecord component.intReturns the value of thetestCountrecord component.final StringtoString()Returns a string representation of this record class.verb()Returns the value of theverbrecord component.
-
Constructor Details
-
ResponseCoverageCell
public ResponseCoverageCell(String verb, String path, String responseCode, int testCount, boolean covered) Creates an instance of aResponseCoverageCellrecord class.- Parameters:
verb- the value for theverbrecord componentpath- the value for thepathrecord componentresponseCode- the value for theresponseCoderecord componenttestCount- the value for thetestCountrecord componentcovered- the value for thecoveredrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
verb
Returns the value of theverbrecord component.- Returns:
- the value of the
verbrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
responseCode
Returns the value of theresponseCoderecord component.- Returns:
- the value of the
responseCoderecord component
-
testCount
public int testCount()Returns the value of thetestCountrecord component.- Returns:
- the value of the
testCountrecord component
-
covered
public boolean covered()Returns the value of thecoveredrecord component.- Returns:
- the value of the
coveredrecord component
-