Documentation ¶
Index ¶
- func RunTests(t *testing.T, testCases []TestCase)
- type Assertion
- type CIUser
- type CommandOutput
- func (co *CommandOutput) ErrorContains(expected string) *CommandOutput
- func (co *CommandOutput) Failed() *CommandOutput
- func (co *CommandOutput) NoError() *CommandOutput
- func (co *CommandOutput) NoOutput() *CommandOutput
- func (co *CommandOutput) OutputContains(expected string) *CommandOutput
- func (co *CommandOutput) OutputNotContains(expected string) *CommandOutput
- func (co *CommandOutput) Success() *CommandOutput
- type TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assertion ¶
type Assertion func(*testing.T, CommandOutput)
type CommandOutput ¶
type CommandOutput struct { ExitCode int Stdout string Stderr string Stdall string // Combined stdout and stderr output for simpler assertions Workdir fs.FS // Expose files from the test folder // contains filtered or unexported fields }
func (*CommandOutput) ErrorContains ¶ added in v0.29.0
func (co *CommandOutput) ErrorContains(expected string) *CommandOutput
func (*CommandOutput) Failed ¶ added in v0.29.0
func (co *CommandOutput) Failed() *CommandOutput
func (*CommandOutput) NoError ¶ added in v0.29.0
func (co *CommandOutput) NoError() *CommandOutput
func (*CommandOutput) NoOutput ¶ added in v0.29.0
func (co *CommandOutput) NoOutput() *CommandOutput
func (*CommandOutput) OutputContains ¶ added in v0.29.0
func (co *CommandOutput) OutputContains(expected string) *CommandOutput
func (*CommandOutput) OutputNotContains ¶ added in v0.32.0
func (co *CommandOutput) OutputNotContains(expected string) *CommandOutput
func (*CommandOutput) Success ¶ added in v0.29.0
func (co *CommandOutput) Success() *CommandOutput
Click to show internal directories.
Click to hide internal directories.