statistics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 11 Imported by: 0

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 New

func New(entries []results.TestResults) *Statistics

New returns a Statistics instance.

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

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.

Jump to

Keyboard shortcuts

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