Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Statuses = []Status{Killed, Survived, Crashed, Timeout, NoCoverage}
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 ¶
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.
type Mutations ¶
Mutations is a map of file names to groups of conflicting mutations.
func (Mutations) GenerateIDs ¶
func (m Mutations) GenerateIDs()
GenerateIDs generates UUIDs for all conflicts and mutations
func (Mutations) StatisticsFrom ¶
func (m Mutations) StatisticsFrom(prefix string) Statistics
type Statistics ¶
func (Statistics) Coverage ¶
func (s Statistics) Coverage() float64
func (Statistics) Score ¶
func (s Statistics) Score() float64
func (Statistics) ScoreOfCovered ¶
func (s Statistics) ScoreOfCovered() float64
Click to show internal directories.
Click to hide internal directories.