1
// Copyright 2009 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
7
Cov is a rudimentary code coverage tool.
9
Given a command to run, it runs the command while tracking which
10
sections of code have been executed. When the command finishes,
11
cov prints the line numbers of sections of code in the binary that
12
were not executed. With no arguments it assumes the command "6.out".
14
Usage: cov [-lsv] [-g substring] [-m minlines] [6.out args]
19
print full path names instead of paths relative to the current directory
21
show the source code that didn't execute, in addition to the line numbers.
23
print debugging information during the run.
25
restrict the coverage analysis to functions or files whose names contain substring
27
only report uncovered sections of code larger than minlines lines
29
For reasons of disambiguation it is installed as 6cov although it also serves
30
as an 8cov and a 5cov.