report

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 added in v0.5.1

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

func ParseFilter added in v0.5.1

func ParseFilter(s string) (Filter, error)

type MutantLogger added in v0.5.1

type MutantLogger struct {
	Filter
}

MutantLogger prints mutant statuses based on filter and verbosity flags.

func NewLogger added in v0.5.1

func NewLogger() MutantLogger

func (MutantLogger) Mutant added in v0.5.1

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