Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(t *testing.T, c AccTestCase)
Types ¶
type AccCheck ¶
type AccCheck struct { PreExec func() PostExec func() Env map[string]string Args func() []string ShouldRetry ShouldRetryFunc Check func(result *test.ScanResult, stdout string, err error) }
type AccTestCase ¶
type RetryConfig ¶
type ShouldRetryFunc ¶ added in v0.21.0
type ShouldRetryFunc func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool
func LinearBackoff ¶ added in v0.21.0
func LinearBackoff(limit time.Duration) ShouldRetryFunc
LinearBackoff returns a function that retries using a back-off strategy of retrying 'n' times and doubling the amount of time waited after each one.
Click to show internal directories.
Click to hide internal directories.