tester

package
v0.0.0-...-0dcb022 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tester

type Tester struct {
	Results []*cover.Profile
	// contains filtered or unexported fields
}

Tester runs tests and merges coverage files

func New

func New(setup *shared.Setup) *Tester

New creates a new Tester with the provided setup

func (*Tester) Enforce

func (t *Tester) Enforce() error

Enforce returns an error if code is untested if the -e command line option is set

func (*Tester) Load

func (t *Tester) Load() error

Load loads pre-prepared coverage files instead of running 'go test'

func (*Tester) ProcessExcludes

func (t *Tester) ProcessExcludes(excludes map[string]map[int]bool) error

ProcessExcludes uses the output from the scanner package and removes blocks from the merged coverage file.

func (*Tester) Save

func (t *Tester) Save() error

Save saves the coverage file

func (*Tester) Test

func (t *Tester) Test() error

Test initiates the tests and merges the coverage files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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