Documentation
¶
Index ¶
- Variables
- type Conflict
- type Conflicts
- type Mutation
- type Mutations
- type Range
- type Statistics
- func (s Statistics) Coverage() float64
- func (s Statistics) Covered() float64
- func (s Statistics) Detected() float64
- func (s Statistics) Invalid() float64
- func (s Statistics) Score() float64
- func (s Statistics) ScoreOfCovered() float64
- func (s Statistics) Undetected() float64
- func (s Statistics) Valid() float64
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var Statuses = []Status{Killed, Survived, Crashed, Timeout, NoCoverage, Ignored, Pending}
Functions ¶
This section is empty.
Types ¶
type Conflict ¶
Conflict represents all mutations that would conflict with each other if they were displayed simultaneously.
func NewConflict ¶
func (*Conflict) ConflictsWithConflict ¶ added in v1.2.0
func (*Conflict) ConflictsWithMutation ¶ added in v1.2.0
func (*Conflict) ResizeToInclude ¶ added in v1.2.0
type Mutation ¶
type Mutation struct {
ID uuid.UUID
FrameworkMutantID string // FrameworkMutantID is an optional identifier provided by a framework.
Description string // Description functions as the mutations title, it is displayed to the user when they preview the mutation.
Operation string // Operation is an optional (short) description of the operation.
Start *Range
End *Range
Status Status
Replacement string
}
Mutation represents a single mutation.
func (Mutation) GetDescription ¶ added in v1.2.0
type Mutations ¶
Mutations is a map of file names to groups of conflicting mutations.
func (Mutations) ExtractBrokenMutations ¶ added in v1.2.0
func (Mutations) GenerateIDs ¶
func (m Mutations) GenerateIDs()
GenerateIDs generates UUIDs for all conflicts and mutations
func (Mutations) MergeConflicting ¶ added in v1.2.0
func (m Mutations) MergeConflicting()
func (Mutations) StatisticsFrom ¶
func (m Mutations) StatisticsFrom(prefix string) Statistics
type Statistics ¶
func (Statistics) Coverage ¶
func (s Statistics) Coverage() float64
func (Statistics) Covered ¶ added in v1.2.0
func (s Statistics) Covered() float64
func (Statistics) Detected ¶ added in v1.2.0
func (s Statistics) Detected() float64
func (Statistics) Invalid ¶ added in v1.2.0
func (s Statistics) Invalid() float64
func (Statistics) Score ¶
func (s Statistics) Score() float64
func (Statistics) ScoreOfCovered ¶
func (s Statistics) ScoreOfCovered() float64
func (Statistics) Undetected ¶ added in v1.2.0
func (s Statistics) Undetected() float64
func (Statistics) Valid ¶ added in v1.2.0
func (s Statistics) Valid() float64
Click to show internal directories.
Click to hide internal directories.