https://github.com/the4thamigo-uk/nocov
golang tool for eliminating sections of code from coverage statistics
https://github.com/the4thamigo-uk/nocov
cover coverage coverage-report gocov golang tool
Last synced: 5 months ago
JSON representation
golang tool for eliminating sections of code from coverage statistics
- Host: GitHub
- URL: https://github.com/the4thamigo-uk/nocov
- Owner: the4thamigo-uk
- License: mit
- Created: 2017-06-10T08:11:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T22:09:37.000Z (over 7 years ago)
- Last Synced: 2024-07-30T17:55:39.999Z (almost 2 years ago)
- Topics: cover, coverage, coverage-report, gocov, golang, tool
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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'
```bash
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
```