report

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorInfo added in v0.4.0

type ErrorInfo struct {
	TestName string
	ErrName  string
	ErrClass string
	Location string
}

func NewErrorInfo added in v0.4.0

func NewErrorInfo(testName, errName, errClass, location string) *ErrorInfo

type ErrorStat

type ErrorStat struct {
	Count     int            `json:"count"`
	Locations map[string]int `json:"locations"`
}

type ReportMgr

type ReportMgr struct {
	JobName     string    `json:"job"`
	BuildNum    int       `json:"build"`
	Deployments int       `json:"deployments"`
	Errors      int       `json:"errors"`
	StartTime   time.Time `json:"startTime"`
	Duration    string    `json:"duration"`
	// Failure map: key=error, value=locations
	Failures map[string]*ErrorStat `json:"failures"`
	// contains filtered or unexported fields
}

func New

func New(jobName string, buildNum int, nDeploys int) *ReportMgr

func (*ReportMgr) Copy

func (h *ReportMgr) Copy() *ReportMgr

func (*ReportMgr) CreateCombinedReport

func (h *ReportMgr) CreateCombinedReport(filepath, testReportFname string) error

func (*ReportMgr) CreateTestReport

func (h *ReportMgr) CreateTestReport(filepath string) error

func (*ReportMgr) Process

func (h *ReportMgr) Process(txt, testName, location string) *ErrorInfo

Jump to

Keyboard shortcuts

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