nocov

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 14 Imported by: 0

README

nocov

golang tool for eliminating sections of code from coverage statistics

Description

This tool is used to post-process the cover profile files created by go test in order to eliminate blocks of code from the test coverage statistics.

Usage

To see the tool in action you should instrument your code with comments of the form '//nocoverage'

go build
go test -coverprofile=c.out
sort -i c.out
./nocov c.out > c.out.modified
sort -i c.out.modified
go tool cover -html=c.out.modified

Or for development:

make

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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