Skip to content

golang tool for eliminating sections of code from coverage statistics

License

Notifications You must be signed in to change notification settings

the4thamigo-uk/nocov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

About

golang tool for eliminating sections of code from coverage statistics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages