Documentation ¶
Index ¶
- type LintRunner
- func (r *LintRunner) Install()
- func (r *LintRunner) Run(args ...string) *RunResult
- func (r *LintRunner) RunCommand(command string, args ...string) *RunResult
- func (r *LintRunner) RunCommandWithYamlConfig(cfg, command string, args ...string) *RunResult
- func (r *LintRunner) RunWithYamlConfig(cfg string, args ...string) *RunResult
- type RunResult
- func (r *RunResult) ExpectExitCode(possibleCodes ...int) *RunResult
- func (r *RunResult) ExpectHasIssue(issueText string) *RunResult
- func (r *RunResult) ExpectNoIssues()
- func (r *RunResult) ExpectOutputContains(s string) *RunResult
- func (r *RunResult) ExpectOutputEq(s string) *RunResult
- func (r *RunResult) ExpectOutputNotContains(s string) *RunResult
- func (r *RunResult) ExpectOutputRegexp(s interface{}) *RunResult
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 (*RunResult) ExpectHasIssue ¶
func (*RunResult) ExpectNoIssues ¶
func (r *RunResult) ExpectNoIssues()
func (*RunResult) ExpectOutputContains ¶
func (*RunResult) ExpectOutputEq ¶
func (*RunResult) ExpectOutputNotContains ¶
func (*RunResult) ExpectOutputRegexp ¶
ExpectOutputRegexp can be called with either a string or compiled regexp
Click to show internal directories.
Click to hide internal directories.