report

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Build string

Build includes commit sha date

View Source
var Version = "v0.23.0"

Version is gopogh version

Functions

This section is empty.

Types

type DisplayContent

type DisplayContent struct {
	Results       map[string][]models.TestGroup
	TotalTests    int
	TotalDuration float64
	BuildVersion  string
	CreatedOn     time.Time
	Detail        models.ReportDetail
	TestTime      time.Time
}

DisplayContent represents the visible report to the end user

func Generate

func Generate(report models.ReportDetail, groups []models.TestGroup) (DisplayContent, error)

Generate generates a report

func (DisplayContent) HTML

func (c DisplayContent) HTML() ([]byte, error)

HTML returns html format

func (DisplayContent) SQL added in v0.18.0

func (c DisplayContent) SQL(flagValues db.FlagValues) error

SQL handles database creation and updates

func (DisplayContent) ShortSummary

func (c DisplayContent) ShortSummary() ([]byte, error)

ShortSummary returns only test names without logs

Jump to

Keyboard shortcuts

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