Documentation ¶
Index ¶
- func AssertNoErrorPanic(err error, lines ...string)
- func AssertNoErrorPanicF(err error, format string, args ...interface{})
- func AssertOrPanic(condition bool, lines ...string)
- func AssertOrPanicF(condition bool, format string, args ...interface{})
- func CombineErrors(err error, errs ...error) error
- func Error(lines ...string) error
- func ErrorF(format string, args ...interface{}) error
- func FormatError(err error) string
- func Panic(lines ...string)
- func PanicF(format string, args ...interface{})
- func PanicIf(condition bool, lines ...string)
- func PanicIfF(condition bool, format string, args ...interface{})
- type AwsMockHandler
- type GithooksFailure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoErrorPanic ¶
AssertNoErrorPanic Assert no error, otherwise panic.
func AssertNoErrorPanicF ¶
AssertNoErrorPanicF Assert no error, otherwise panic.
func AssertOrPanic ¶
AssertOrPanic Assert a condition is `true`, otherwise panic.
func AssertOrPanicF ¶
AssertOrPanicF Assert a condition is `true`, otherwise panic.
func CombineErrors ¶
CombineErrors combines multiple errors into one.
Types ¶
type AwsMockHandler ¶
type AwsMockHandler struct {
// contains filtered or unexported fields
}
func NewAwsMockHandler ¶
func NewAwsMockHandler() *AwsMockHandler
NewAwsMockHandler - Create an AWS mocker to use with the AWS services, it returns an instrumented aws.Config that can be used to create AWS services. You can add as many individual request handlers as you need, as long as handlers correspond to the func(context.Context, <arg>)(<res>, error) format. E.g.: func(context.Context, *ec2.TerminateInstancesInput)(*ec2.TerminateInstancesOutput, error)
You can also use a struct as the handler, in this case the AwsMockHandler will try to search for a method with a conforming signature.
func (*AwsMockHandler) AddHandler ¶
func (a *AwsMockHandler) AddHandler(handlerObject interface{})
func (*AwsMockHandler) AwsConfig ¶
func (a *AwsMockHandler) AwsConfig() aws.Config
type GithooksFailure ¶
type GithooksFailure struct {
// contains filtered or unexported fields
}
GithooksFailure is a normal hook failure.
func (*GithooksFailure) Error ¶
func (e *GithooksFailure) Error() string