runner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxUint defines the max unsigned int value.
	MaxUint = ^uint(0)
	// MaxInt defines the max signed int value.
	MaxInt = int(MaxUint >> 1)
)

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, co []codeowners.Entry, repoPath string, treatedAsFailure check.SeverityType, 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

func (*CheckRunner) ShouldExitWithCheckFailure added in v0.2.0

func (r *CheckRunner) ShouldExitWithCheckFailure() bool

type Printer

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

Printer prints the checks results

Jump to

Keyboard shortcuts

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