Documentation
¶
Overview ¶
package loadcov is a high level load function specifically for coverage
Index ¶
- func ConvertToBinaryProfile(res []*coverage.CovLine) (coverage_model.BinaryProfile, error)
- func LoadAll(opts LoadAllOptions) (*model.ProjectAnnotation, error)
- func LoadCoverageProfileFiles(modPath string, files []string, excludePrefix []string) (*ann_model.ProjectAnnotation, error)
- func LoadGitDiff(dir string, relFiles []string, diffBase string) (*model.ProjectAnnotation, error)
- func LoadStatic(astLoadInfo ast.LoadInfo, opts LodOpts) (*model.ProjectAnnotation, error)
- func ParseProfiles(files []string, excludePrefix []string) ([]*coverage.CovLine, error)
- type Block
- type CoverageBlock
- type LoadAllOptions
- type LodOpts
- type Pos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToBinaryProfile ¶
func ConvertToBinaryProfile(res []*coverage.CovLine) (coverage_model.BinaryProfile, error)
func LoadAll ¶
func LoadAll(opts LoadAllOptions) (*model.ProjectAnnotation, error)
func LoadGitDiff ¶
func LoadStatic ¶
Types ¶
type CoverageBlock ¶
type CoverageBlock struct {
FileName string // format: <pkg>/<file>, NOTE: ends with .go
Block
NumStmts int
Count int
}
func (*CoverageBlock) FormatWithCount ¶
func (c *CoverageBlock) FormatWithCount(count int) string
func (*CoverageBlock) String ¶
func (c *CoverageBlock) String() string
type LoadAllOptions ¶
Click to show internal directories.
Click to hide internal directories.