coverage-lines

command module
v0.0.0-...-81081ad Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: MIT Imports: 9 Imported by: 0

README

Coverage lines

Simple tool to get covered and total lines which might be useful if you're trying to calculate total coverage for multiple projects, some of which are not written in Go.

Please see example for more context.

Installation

Same as for any other go binary:

go get -u github.com/yb172/coverage-lines

Usage

First run test with -coverprofile option enabled:

go test ./... -coverprofile=cover.out

And then run coverage-lines:

coverage-lines cover.out

It will output two numbers: number of covered statements and total number of statements

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