Documentation ¶
Index ¶
- func CleanStringByRegex(input string, regexes []*regexp.Regexp) string
- func LoadSnapshot(t *testing.T, snapshot string) string
- func ValidRegex(pattern string) func(output []byte, err error) ValidationResult
- func WriteSnapshot(t *testing.T, snapshot string, content []byte)
- type CmdDesc
- type MobileClientJSON
- type MobileClientSpec
- type ProvisionServiceParams
- type ValidationFunction
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanStringByRegex ¶ added in v0.0.3
func ValidRegex ¶ added in v0.0.3
func ValidRegex(pattern string) func(output []byte, err error) ValidationResult
Types ¶
type CmdDesc ¶ added in v0.0.3
type CmdDesc struct { Executable string Arg []string Validator ValidationFunction }
func ValidatedCmd ¶ added in v0.0.3
func (CmdDesc) Run ¶ added in v0.0.3
func (c CmdDesc) Run() ValidationResult
func (CmdDesc) Should ¶ added in v0.0.3
func (c CmdDesc) Should(validator ValidationFunction) CmdDesc
type MobileClientJSON ¶ added in v0.0.3
type MobileClientJSON struct {
Spec MobileClientSpec
}
MobileClientJSON represents a mobile client application
type MobileClientSpec ¶ added in v0.0.3
type MobileClientSpec struct { ID string Name string APIKey string ClientType string AppIdentifier string Namespace string }
MobileClientSpec represents a mobile client application
type ProvisionServiceParams ¶ added in v0.0.5
type ValidationFunction ¶ added in v0.0.3
type ValidationFunction = func(output []byte, err error) ValidationResult
func All ¶ added in v0.0.3
func All(vs ...ValidationFunction) ValidationFunction
type ValidationResult ¶ added in v0.0.3
func FailureValidation ¶ added in v0.0.3
func FailureValidation(output []byte, err error) ValidationResult
func IsErr ¶ added in v0.0.3
func IsErr(output []byte, err error) ValidationResult
func NoErr ¶ added in v0.0.3
func NoErr(output []byte, err error) ValidationResult
func SuccessValidation ¶ added in v0.0.3
func SuccessValidation(output []byte, err error) ValidationResult
Click to show internal directories.
Click to hide internal directories.