tester

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 13 Imported by: 13

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 added in v0.2.0

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