coverprofile

package module
v0.0.0-...-3ae7001 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 6 Imported by: 1

README

gostaticanalysis/coverprofile

godoc.org

coverprofile parses a coverprofile file which generated by go test with -coverprofile option.

Documentation

Index

Constants

View Source
const Doc = "coverprofile parses a coverprofile file which generated by go test with -coverprofile option"

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:       "coverprofile",
	Doc:        Doc,
	Run:        run,
	ResultType: reflect.TypeOf(([]*File)(nil)),
}

Functions

This section is empty.

Types

type Block

type Block struct {
	Start, End     token.Pos
	NumStmt, Count int
}

type File

type File struct {
	TokenFile *token.File
	Name      string
	Mode      string
	Blocks    []*Block
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL