pretty

package
v0.0.0-...-1dd1f65 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Printer)

Option is the type of options for a pretty-printer.

func Options

func Options(os ...Option) Option

Options combines the options os into a single option.

func ShowMutants

func ShowMutants(f stat.MutantFilter) Option

ShowMutants enables mutant showing under filter f. If f is nil, mutant showing is disabled.

func UseTotals

func UseTotals(on bool) Option

UseTotals determines whether we show totals rather than session statistics.

func WriteTo

func WriteTo(w io.Writer) Option

WriteTo sets the printer's output to w.

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

Printer provides the ability to output human-readable summaries of the statistics file to a writer.

func NewPrinter

func NewPrinter(o ...Option) (*Printer, error)

func (*Printer) Write

func (p *Printer) Write(s stat.Set) error

Write writes a summary of statistic set s to this writer.

Jump to

Keyboard shortcuts

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