runner

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRunner

type CheckRunner struct {
	// contains filtered or unexported fields
}

CheckRunner runs all registered checks in parallel. Needs to be initialized via NewCheckRunner func.

func NewCheckRunner

func NewCheckRunner(log logrus.FieldLogger, printer Printer, c []codeowners.Entry, repoPath string, checks ...check.Checker) *CheckRunner

NewCheckRunner is a constructor for CheckRunner

func (*CheckRunner) Run

func (r *CheckRunner) Run(ctx context.Context)

Run executes given test in a loop with given throttle

type Printer

type Printer interface {
	PrintCheckResult(checkName string, duration time.Duration, checkOut check.Output)
	PrintSummary(allCheck uint64, failedChecks uint64)
}

Printer prints the checks results

Jump to

Keyboard shortcuts

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