cover

command module
v0.0.0-...-8a92d64 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 16 Imported by: 0

README

Coverage instrumentation program created for lightning talk at GopherCon 2024: github.com/cixel/gc2024

This is just a learning tool and should not be used seriously. If you need code coverage, please use the coverage tool built into Go.

Usage

$ go install ehden.net/cover@latest
$ go build -toolexec cover

The COVER_PATHS environment variable can contain a comma-separated list of packages which should be instrumented. If missing or empty, only the main package is instrumented.

If COVER_PATHS=*, all packages in the build will be instrumented. This is rather expensive and isn't recommended, but could be fun.

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