Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormatExcel string = "excel" // Export Statistics to an Excel Spreadsheet. FormatImage string = "image" // Export Statistics to a PNG histogram image. FormatTable string = "table" // Export Statistics to a printable table. )
Statistics export formats.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Statistics ¶
type Statistics struct {
Entries []results.TestResults
}
Statistics represents grouped results of the test.
func (Statistics) ExportToExcel ¶
func (s Statistics) ExportToExcel(dest string) error
ExportToExcel exports Statistics to an Excel Spreadsheet file dest.
func (Statistics) ExportToPng ¶
func (s Statistics) ExportToPng(dest string) error
ExportToPng exports Statistics to a PNG histogram image dest.
func (Statistics) ExportToTable ¶
func (s Statistics) ExportToTable() table.Table
ExportToTable exports Statistics to a printable table.
type StatisticsService ¶
type StatisticsService struct {
// contains filtered or unexported fields
}
StatisticsService is a struct that provides methods for manipulating Statistics structures.
func NewService ¶
func NewService(r *results.ResultsService) *StatisticsService
NewService returns a StatisticsService instance.
func (StatisticsService) Export ¶
func (s StatisticsService) Export(testName, dest, format string) error
Export retrieves statistics of the test and exports in to a specified format.
Click to show internal directories.
Click to hide internal directories.