gocoverutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: MIT Imports: 10 Imported by: 3

Documentation

Overview

Package gocoverutil implements merging of go cover profiles and running go test -cover with correct flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(inputFiles []string, outputFile string) error

Merge merges several coverage files into single file. All input files are fully read before output file is written, so it may be one of the input files.

func Test

func Test(flagSet *flag.FlagSet, ignore []string, outputFile string, logger *log.Logger) error

Test runs `go test -cover` with correct flags for all packages in flagSet, and merges coverage files. Returned error may be *exec.ExitError if tests failed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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