Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultFileMode = 0660
Variables ¶
View Source
var BenchMarkResultExp = regexp.MustCompile(`^(?P<benchName>[0-9A-Za-z_\-/.]+)\s+(?P<n>\d+)\s+(?P<nsPerOp>\d+(?:\.\d+)?) ns/op`)
View Source
var PkgNameExp = regexp.MustCompile(`^pkg: (?P<pkgName>[0-9A-Za-z_\-/.]+)`)
Functions ¶
This section is empty.
Types ¶
type HistoricPkgBench ¶
HistoryPkgBench map package to a map of benchmark name to benchmark results
type ParsedBench ¶
ParsedBench is a map of package name to a Slice containing all the benchmarks for that slice.
func ParseFile ¶
func ParseFile(fileIn string) (ParsedBench, error)
type TestSuites ¶
type TestSuites struct { XMLName xml.Name `xml:"testsuites"` TestSuite TestSuite `xml:"testsuite"` }
func ParseToXML ¶
func ParseToXML(fileIn, suiteName, stripFromPacakgeName string) (*TestSuites, error)
Click to show internal directories.
Click to hide internal directories.