report

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFilter = errors.New("invalid statuses filter, only 'lctkvsr' letters allowed")

Functions

func Do

func Do(results Results) error

Do generates the report of the Results received. This function uses the log package in gremlins to write to the chosen io.Writer, so it is necessary to call log.Init before the report generation.

func Mutant

func Mutant(m mutator.Mutator)

Mutant logs a mutator.Mutator. It reports the mutant.Status, the mutator.Type and its position. This function uses the log package in gremlins to write to the chosen io.Writer, so it is necessary to call log.Init before the report generation.

Types

type Filter

type Filter = map[mutator.Status]struct{}

func ParseFilter

func ParseFilter(s string) (Filter, error)

type MutantLogger

type MutantLogger struct {
	Filter
}

MutantLogger prints mutant statuses based on filter and verbosity flags.

func NewLogger

func NewLogger() MutantLogger

func (MutantLogger) Mutant

func (l MutantLogger) Mutant(m mutator.Mutator)

type Results

type Results struct {
	Module  string
	Mutants []mutator.Mutator
	Elapsed time.Duration
}

Results contains the list of mutator.Mutator to be reported and the time it took to discover and test them.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL