Documentation
¶
Index ¶
- Variables
- func SpecsToSearchPatterns(fileSpecs FileSpecs) (searchPatterns []string)
- func ToSearchPatterns(fileNames []string) (searchPatterns []string)
- type File
- type FileSpecs
- func ProcessFunctionNames(srcs *sources.SourcesData, functionNames []string) (FileSpecs, error)
- func ProcessGitDiff(pkgPaths set.Set[string], diffBytes []byte) (FileSpecs, error)
- func ProcessNameArguments(fileNames []string) (FileSpecs, error)
- func ResolveFileNames(dir string, fileSpecs FileSpecs) (FileSpecs, error)
- type FileWithCoverData
- type LineRange
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoCoverageData = errors.New("no coverage data found")
Functions ¶
func SpecsToSearchPatterns ¶
func ToSearchPatterns ¶
Types ¶
type File ¶
type File struct {
Name string
PkgFileName string
Lines []int
Content []byte
Pos token.Position
End token.Position
LineRanges []LineRange
}
func ExtractFiles ¶
func (*File) GetRelevantProfileBlocks ¶
type FileSpecs ¶
func ProcessFunctionNames ¶
func ProcessFunctionNames( srcs *sources.SourcesData, functionNames []string, ) (FileSpecs, error)
func ProcessGitDiff ¶
func ProcessNameArguments ¶
type FileWithCoverData ¶ added in v0.2.3
type FileWithCoverData struct {
File *File
ProfileBlocks []go_cover.ProfileBlock
}
func GetCoverData ¶ added in v0.2.3
func GetCoverData( files []*File, cov *cover.CoverData, ) ([]*FileWithCoverData, error)
Click to show internal directories.
Click to hide internal directories.