report

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 12 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) CodeToTestRatioRatio added in v0.6.0

func (r *Report) CodeToTestRatioRatio() float64

func (*Report) CoveragePercent

func (r *Report) CoveragePercent() float64

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() error

func (*Report) String

func (r *Report) String() 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