You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1020 B

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