report

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Repository        string             `json:"repository"`
	Ref               string             `json:"ref"`
	Commit            string             `json:"commit"`
	Coverage          *coverage.Coverage `json:"coverage"`
	CodeToTestRatio   *ratio.Ratio       `json:"code_to_test_ratio,omitempty"`
	TestExecutionTime *float64           `json:"test_execution_time,omitempty"`

	Timestamp time.Time `json:"timestamp"`
	// contains filtered or unexported fields
}

func New

func New() *Report

func (*Report) Bytes added in v0.13.0

func (r *Report) Bytes() []byte

func (*Report) CodeToTestRatioRatio added in v0.6.0

func (r *Report) CodeToTestRatioRatio() float64

func (*Report) CountMeasured added in v0.12.0

func (r *Report) CountMeasured() int

func (*Report) CoveragePercent

func (r *Report) CoveragePercent() float64

func (*Report) IsMeasuredCodeToTestRatio added in v0.12.0

func (r *Report) IsMeasuredCodeToTestRatio() bool

func (*Report) IsMeasuredCoverage added in v0.12.0

func (r *Report) IsMeasuredCoverage() bool

func (*Report) IsMeasuredTestExecutionTime added in v0.12.0

func (r *Report) IsMeasuredTestExecutionTime() bool

func (*Report) MeasureCodeToTestRatio added in v0.6.0

func (r *Report) MeasureCodeToTestRatio(code, test []string) error

func (*Report) MeasureCoverage

func (r *Report) MeasureCoverage(path string) error

func (*Report) MeasureTestExecutionTime added in v0.7.0

func (r *Report) MeasureTestExecutionTime(ctx context.Context, stepNames []string) error

func (*Report) String

func (r *Report) String() string

func (*Report) Table added in v0.11.0

func (r *Report) Table() string

func (*Report) Validate added in v0.2.0

func (r *Report) Validate() error

Jump to

Keyboard shortcuts

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