report

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 10 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"`
	Timestamp       time.Time          `json:"timestamp"`
}

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