covloc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverageCount

type CoverageCount struct {
	SrcLoc srclocation.SourceLocation
	Count  int
}

type CoverageLoc

type CoverageLoc struct {
	HitCount      int
	CoverageRange srclocation.SourceLocation
	SrcLocs       []srclocation.SourceLocation
}

Coverage hits from execution traces will be associated with a single srcloc byte range. But that hit only represents execution of the lowest-precedence operation in that byte range; other operations will be represented by smaller byte ranges within it. In order not to double-count those, we break apart the srcloc into the ranges that are uniquely represented by it. Those are stored in SrcLocs, and the original is stored in CoverageRange. HitCount accumulates hits from the execution traces.

func ToCoverageLocs

func ToCoverageLocs(node ast.AST) ([]CoverageLoc, error)

Jump to

Keyboard shortcuts

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