Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSet ¶
type DataSet []FileData
DataSet is a list of FileData instances. It implements sort.Interface, and thus is capable of being sorted by handle.
func (DataSet) Less ¶
Less reports whether the element with index i should sort before the element with index j.
func (DataSet) Merge ¶
Merge is a utility function that merges a list of FileData instances with another FileData list. It ensures that the Count fields are the same and picks an Exec field. It returns the resulting list, along with a list of FileData where Count did not match; the order will match the elements of a first, followed by any elements of b which did not appear in a.
func (DataSet) Reduce ¶
Reduce is a utility function that reduces a list of FileData instances into a list of FileData instances that only contain counts for packages.
type FileData ¶
type FileData struct { Package string // Name of the package Name string // Name of the file (basename) Count int64 // Number of statements in the file Exec int64 // Number of statements in the file that were executed }
FileData contains the summarized data about the file, including its package, its base name, the total number of statements, and the number of executed statements.