1 // Copyright 2013 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.
6 Cover is a program for analyzing the coverage profiles generated by
7 'go test -coverprofile=cover.out'.
9 Deprecated: For Go releases 1.5 and later, this tool lives in the
10 standard repository. The code here is not maintained.
12 Cover is also used by 'go test -cover' to rewrite the source code with
13 annotations to track which parts of each function are executed.
14 It operates on one Go source file at a time, computing approximate
15 basic block information by studying the source. It is thus more portable
16 than binary-rewriting coverage tools, but also a little less capable.
17 For instance, it does not probe inside && and || expressions, and can
18 be mildly confused by single statements with multiple function literals.
20 For usage information, please see:
24 package main // import "golang.org/x/tools/cmd/cover"