~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/cmd/cov/doc.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-04-20 17:36:48 UTC
  • Revision ID: james.westby@ubuntu.com-20110420173648-ifergoxyrm832trd
Tags: upstream-2011.03.07.1
Import upstream version 2011.03.07.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
4
 
 
5
/*
 
6
 
 
7
Cov is a rudimentary code coverage tool.
 
8
 
 
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".
 
13
 
 
14
Usage: cov [-lsv] [-g substring] [-m minlines] [6.out args]
 
15
 
 
16
The options are:
 
17
 
 
18
        -l
 
19
                print full path names instead of paths relative to the current directory
 
20
        -s
 
21
                show the source code that didn't execute, in addition to the line numbers.
 
22
        -v
 
23
                print debugging information during the run.
 
24
        -g substring
 
25
                restrict the coverage analysis to functions or files whose names contain substring
 
26
        -m minlines
 
27
                only report uncovered sections of code larger than minlines lines
 
28
 
 
29
For reasons of disambiguation it is installed as 6cov although it also serves
 
30
as an 8cov and a 5cov.
 
31
 
 
32
*/
 
33
package documentation