workers

package
v0.0.0-...-46106e4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllReleases

func GetAllReleases(repoClient *vsts.Client)

func GetNumberOfMergedPullRequestsByTime

func GetNumberOfMergedPullRequestsByTime(repoClient *vsts.Client, startDate time.Time, endDate time.Time) (int, error)

GetNumberOfMergedPullRequestsByTime returns all successfully merged PRs

func GetPullRequestsMergeDelay

func GetPullRequestsMergeDelay(repoClient *vsts.Client, startDate time.Time, endDate time.Time) (float64, float64, error)

GetPullRequestsMergeDelay given a time range, determines the delay in hours to merge a PR

Types

type Coverage

type Coverage struct {
	Path       string
	Executable string
}

Coverage has core information required to determine the % coverage of a given repo

func New

func New(path, executable string) *Coverage

func (*Coverage) GenerateCoverage

func (c *Coverage) GenerateCoverage(fileName string) error

GenerateCoverage creates a general go test coverage file

func (*Coverage) GenerateFuncCoverage

func (c *Coverage) GenerateFuncCoverage(coverageFileName, fileName string) error

GenerateFuncCoverage generates a coverage report based on functional coverage

func (*Coverage) ParseCoverageFile

func (c *Coverage) ParseCoverageFile(fileName string) (float64, error)

ParseCoverageFile extracts a coverage total

Jump to

Keyboard shortcuts

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