Documentation ¶
Index ¶
- func Close(c io.Closer)
- func CycleUntilComplete[R CompletableJob](interval time.Duration, producer func() (R, error)) (R, error)
- func DumpJSON(v any, w io.Writer)
- func Fail(msg string, args ...any)
- func MustCreateProvCredENV(providerName string, withRequiredAccessToken, withRequiredWorkspace bool) *credscanning.ProviderCredentials
- func MustCreateProvCredJSON(filePath string, withRequiredAccessToken, withRequiredWorkspace bool) *credscanning.ProviderCredentials
- func SetupLogging()
- type CompletableJob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CycleUntilComplete ¶
func CycleUntilComplete[R CompletableJob]( interval time.Duration, producer func() (R, error), ) (R, error)
CycleUntilComplete will invoke producer function every interval. Once the producer gives non-nil value the cycle will come to an end. Either due to concrete error or result value.
func MustCreateProvCredENV ¶
func MustCreateProvCredENV(providerName string, withRequiredAccessToken, withRequiredWorkspace bool, ) *credscanning.ProviderCredentials
MustCreateProvCredENV can be used by tests supplying variables via environment.
func MustCreateProvCredJSON ¶
func MustCreateProvCredJSON(filePath string, withRequiredAccessToken, withRequiredWorkspace bool, ) *credscanning.ProviderCredentials
Types ¶
type CompletableJob ¶
type CompletableJob interface {
IsStatusDone() bool
}
Directories ¶
Path | Synopsis |
---|---|
Package testroutines holds a collection of common test procedures.
|
Package testroutines holds a collection of common test procedures. |
Click to show internal directories.
Click to hide internal directories.