testshared

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LintRunner

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

func NewLintRunner

func NewLintRunner(t assert.TestingT, environ ...string) *LintRunner

func (*LintRunner) Install

func (r *LintRunner) Install()

func (*LintRunner) Run

func (r *LintRunner) Run(args ...string) *RunResult

func (*LintRunner) RunCommand

func (r *LintRunner) RunCommand(command string, args ...string) *RunResult

func (*LintRunner) RunCommandWithYamlConfig

func (r *LintRunner) RunCommandWithYamlConfig(cfg, command string, args ...string) *RunResult

func (*LintRunner) RunWithYamlConfig

func (r *LintRunner) RunWithYamlConfig(cfg string, args ...string) *RunResult

type RunResult

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

func (*RunResult) ExpectExitCode

func (r *RunResult) ExpectExitCode(possibleCodes ...int) *RunResult

func (*RunResult) ExpectHasIssue

func (r *RunResult) ExpectHasIssue(issueText string) *RunResult

func (*RunResult) ExpectNoIssues

func (r *RunResult) ExpectNoIssues()

func (*RunResult) ExpectOutputContains

func (r *RunResult) ExpectOutputContains(s string) *RunResult

func (*RunResult) ExpectOutputEq

func (r *RunResult) ExpectOutputEq(s string) *RunResult

func (*RunResult) ExpectOutputNotContains

func (r *RunResult) ExpectOutputNotContains(s string) *RunResult

func (*RunResult) ExpectOutputRegexp

func (r *RunResult) ExpectOutputRegexp(s interface{}) *RunResult

ExpectOutputRegexp can be called with either a string or compiled regexp

Jump to

Keyboard shortcuts

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