Skip to content

firodj/nocov

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

golang tool for eliminating sections of code from coverage statistics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.7%
  • Makefile 1.3%