Class TupleNode


  • public class TupleNode
    extends Object
    Class representing Nodes used by TupleRelationshipStrategy to identify minimal failure or exception-inducing combinations.
    • tuple stores a BitSet representing a combination of parameters and values
    • status stores whether the node is unknown, healthy, faulty or exceptional
    • Method Detail

      • isMinimalInducingTuple

        public boolean isMinimalInducingTuple()
        Returns:
        true iff this tuple is minimal failure- or exception-inducing, i.e. it has no children or all children are healthy.
      • getSize

        public int getSize()
        Returns:
        number of set parameters
      • getCombination

        public int[] getCombination​(int[] failingTestInput)
        maps the stored BitSet to the sub-combination it represents.
        Parameters:
        failingTestInput - test input to compute the sub-combination for.
        Returns:
        the sub-combination of the failingTestInput this tuple represents.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object