Documentation ¶
Index ¶
- type DiffReport
- type DiffTestExecutionTime
- type Report
- func (r *Report) Bytes() []byte
- func (r *Report) CodeToTestRatioRatio() float64
- func (r *Report) Compare(r2 *Report) *DiffReport
- func (r *Report) CountMeasured() int
- func (r *Report) CoveragePercent() float64
- func (r *Report) FileCoveagesTable(files []*gh.PullRequestFile) string
- func (r *Report) IsMeasuredCodeToTestRatio() bool
- func (r *Report) IsMeasuredCoverage() bool
- func (r *Report) IsMeasuredTestExecutionTime() bool
- func (r *Report) Key() string
- func (r *Report) Load(path string) error
- func (r *Report) MeasureCodeToTestRatio(root string, code, test []string) error
- func (r *Report) MeasureCoverage(paths []string) error
- func (r *Report) MeasureTestExecutionTime(ctx context.Context, stepNames []string) error
- func (r *Report) Out(w io.Writer) error
- func (r *Report) String() string
- func (r *Report) Table() string
- func (r *Report) TestExecutionTimeNano() float64
- func (r *Report) Title() string
- func (r *Report) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffReport ¶ added in v0.20.0
type DiffReport struct { RepositoryA string `json:"repository_a"` RepositoryB string `json:"repository_b"` RefA string `json:"ref_a"` RefB string `json:"ref_b"` CommitA string `json:"commit_a"` CommitB string `json:"commit_b"` Coverage *coverage.DiffCoverage `json:"coverage,omitempty"` CodeToTestRatio *ratio.DiffRatio `json:"code_to_test_ratio,omitempty"` TestExecutionTime *DiffTestExecutionTime `json:"test_execution_time,omitempty"` TimestampA time.Time `json:"timestamp_a"` TimestampB time.Time `json:"timestamp_b"` ReportA *Report `json:"-"` ReportB *Report `json:"-"` }
func (*DiffReport) FileCoveagesTable ¶ added in v0.20.0
func (d *DiffReport) FileCoveagesTable(files []*gh.PullRequestFile) string
func (*DiffReport) Out ¶ added in v0.20.0
func (d *DiffReport) Out(w io.Writer)
func (*DiffReport) Table ¶ added in v0.20.0
func (d *DiffReport) Table() string
type DiffTestExecutionTime ¶ added in v0.20.0
type Report ¶
type Report struct { Repository string `json:"repository"` Ref string `json:"ref"` Commit string `json:"commit"` Coverage *coverage.Coverage `json:"coverage,omitempty"` 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 (*Report) CodeToTestRatioRatio ¶ added in v0.6.0
func (*Report) Compare ¶ added in v0.20.0
func (r *Report) Compare(r2 *Report) *DiffReport
func (*Report) CountMeasured ¶ added in v0.12.0
func (*Report) CoveragePercent ¶
func (*Report) FileCoveagesTable ¶ added in v0.19.0
func (r *Report) FileCoveagesTable(files []*gh.PullRequestFile) string
func (*Report) IsMeasuredCodeToTestRatio ¶ added in v0.12.0
func (*Report) IsMeasuredCoverage ¶ added in v0.12.0
func (*Report) IsMeasuredTestExecutionTime ¶ added in v0.12.0
func (*Report) MeasureCodeToTestRatio ¶ added in v0.6.0
func (*Report) MeasureCoverage ¶
func (*Report) MeasureTestExecutionTime ¶ added in v0.7.0
func (*Report) TestExecutionTimeNano ¶ added in v0.29.0
Click to show internal directories.
Click to hide internal directories.