c

mutationtesting

MutantResult

final case class MutantResult(id: String, mutatorName: String, replacement: String, location: Location, status: MutantStatus, statusReason: Option[String] = None, description: Option[String] = None, coveredBy: Option[Seq[String]] = None, killedBy: Option[Seq[String]] = None, testsCompleted: Option[Int] = None, static: Option[Boolean] = None) extends Product with Serializable

Single mutation.

id

Unique id, can be used to correlate this mutant with other reports.

mutatorName

Category of the mutation.

replacement

Actual mutation that has been applied.

location

A location with start and end. Start is inclusive, end is exclusive.

status

Result of the mutation.

statusReason

The reason that this mutant has this status. In the case of a killed mutant, this should be filled with the failure message(s) of the failing tests. In case of an error mutant, this should be filled with the error message.

description

Description of the applied mutation.

coveredBy

The test ids that covered this mutant. If a mutation testing framework doesn't measure this information, it can simply be left out.

killedBy

The test ids that killed this mutant. It is a best practice to "bail" on first failing test, in which case you can fill this array with that one test.

testsCompleted

The number of tests actually completed in order to test this mutant. Can differ from coveredBy because of bailing a mutant test run after first failing test.

static

A static mutant means that it was loaded once at during initialization, this makes it slow or even impossible to test, depending on the mutation testing framework.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutantResult
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MutantResult(id: String, mutatorName: String, replacement: String, location: Location, status: MutantStatus, statusReason: Option[String] = None, description: Option[String] = None, coveredBy: Option[Seq[String]] = None, killedBy: Option[Seq[String]] = None, testsCompleted: Option[Int] = None, static: Option[Boolean] = None)

    id

    Unique id, can be used to correlate this mutant with other reports.

    mutatorName

    Category of the mutation.

    replacement

    Actual mutation that has been applied.

    location

    A location with start and end. Start is inclusive, end is exclusive.

    status

    Result of the mutation.

    statusReason

    The reason that this mutant has this status. In the case of a killed mutant, this should be filled with the failure message(s) of the failing tests. In case of an error mutant, this should be filled with the error message.

    description

    Description of the applied mutation.

    coveredBy

    The test ids that covered this mutant. If a mutation testing framework doesn't measure this information, it can simply be left out.

    killedBy

    The test ids that killed this mutant. It is a best practice to "bail" on first failing test, in which case you can fill this array with that one test.

    testsCompleted

    The number of tests actually completed in order to test this mutant. Can differ from coveredBy because of bailing a mutant test run after first failing test.

    static

    A static mutant means that it was loaded once at during initialization, this makes it slow or even impossible to test, depending on the mutation testing framework.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. val coveredBy: Option[Seq[String]]
  7. val description: Option[String]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. val id: String
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val killedBy: Option[Seq[String]]
  13. val location: Location
  14. val mutatorName: String
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. val replacement: String
  20. val static: Option[Boolean]
  21. val status: MutantStatus
  22. val statusReason: Option[String]
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. val testsCompleted: Option[Int]
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped