command
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 1, 2021
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.