covmerge

package
v0.0.0-...-de3d114 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2017 License: BSD-3-Clause, BSD-2-Clause Imports: 7 Imported by: 0

README

gocovmerge

gocovmerge takes the results from multiple go test -coverprofile runs and merges them into one profile.

usage

gocovmerge [coverprofiles...]

gocovmerge takes the source coverprofiles as the arguments (output from go test -coverprofile coverage.out) and outputs a merged version of the files to standard out. You can only merge profiles that were generated from the same source code. If there are source lines that overlap or do not merge, the process will exit with an error code.

Documentation

Overview

Package covmerge takes the results from multiple `go test -coverprofile` runs and merges them into one profile

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeFiles

func MergeFiles(input []string, output string) error

MergeFiles merges coverage profiles specified by the input list into single profile file - the output one.

If it's not possible to either merge profiles, e.g. due to conflicting profile block overlaps, or filesystem errors, the function returns non-nil error.

TODO(rjeczalik): research recovery for "conflicting merge overlaps".

Types

This section is empty.

Jump to

Keyboard shortcuts

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