Documentation ¶
Index ¶
- type AnyType
- func (a *AnyType) AsBool() *Bool
- func (a *AnyType) AsComplex() *Complex
- func (a *AnyType) AsFloat() *Float
- func (a *AnyType) AsInt() *Int
- func (a *AnyType) AsInt64() *Int64
- func (a *AnyType) AsString() *String
- func (a *AnyType) AsUint64() *Uint64
- func (a *AnyType) IsEqualTo(expected interface{}) *AnyType
- func (a *AnyType) IsNil() *AnyType
- func (a *AnyType) IsNotEqualTo(expected interface{}) *AnyType
- func (a *AnyType) IsNotNil() *AnyType
- type Bool
- type Complex
- type Float
- type Int
- func (a *Int) IsAnswerToTheUltimateQuestionOfLife() *Int
- func (a *Int) IsBetween(lowerBound, upperBound int) *Int
- func (a *Int) IsDivisibleBy(divisor int) *Int
- func (a *Int) IsEqualTo(expected int) *Int
- func (a *Int) IsEven() *Int
- func (a *Int) IsGreaterOrEqualTo(lessOrEqual int) *Int
- func (a *Int) IsGreaterThan(less int) *Int
- func (a *Int) IsIn(elements ...int) *Int
- func (a *Int) IsLessOrEqualTo(greaterOrEqual int) *Int
- func (a *Int) IsLessThan(greater int) *Int
- func (a *Int) IsNegative() *Int
- func (a *Int) IsNonNegative() *Int
- func (a *Int) IsNonPositive() *Int
- func (a *Int) IsNonZero() *Int
- func (a *Int) IsNotBetween(lowerBound, upperBound int) *Int
- func (a *Int) IsNotDivisibleBy(divisor int) *Int
- func (a *Int) IsNotEqualTo(unexpected int) *Int
- func (a *Int) IsNotIn(elements ...int) *Int
- func (a *Int) IsNotPrime() *Int
- func (a *Int) IsOdd() *Int
- func (a *Int) IsPositive() *Int
- func (a *Int) IsPrime() *Int
- func (a *Int) IsZero() *Int
- type Int64
- type Provider
- func (p *Provider) That(actual interface{}) *AnyType
- func (p *Provider) ThatBool(actual bool) *Bool
- func (p *Provider) ThatComplex(actual complex128) *Complex
- func (p *Provider) ThatFloat(actual float64) *Float
- func (p *Provider) ThatInt(actual int) *Int
- func (p *Provider) ThatInt64(actual int64) *Int64
- func (p *Provider) ThatString(actual string) *String
- func (p *Provider) ThatUint64(actual uint64) *Uint64
- type String
- func (a *String) Contains(substring string) *String
- func (a *String) DoesNotContain(substring string) *String
- func (a *String) IsEmpty() *String
- func (a *String) IsEqualTo(expected string) *String
- func (a *String) IsInSlice(expectedSlice []string) *String
- func (a *String) IsLowerCase() *String
- func (a *String) IsNotEmpty() *String
- func (a *String) IsNotEqualTo(unexpected string) *String
- func (a *String) IsNotInSlice(expectedSlice []string) *String
- func (a *String) IsNotLowerCase() *String
- func (a *String) IsNotUpperCase() *String
- func (a *String) IsUpperCase() *String
- func (a *String) Matches(pattern string) *String
- type Uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyType ¶
type AnyType struct {
// contains filtered or unexported fields
}
func (*AnyType) IsNotEqualTo ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
func (*Bool) IsSchrödingersCat ¶
type Complex ¶
type Complex struct {
// contains filtered or unexported fields
}
func (*Complex) IsEqualTo ¶
func (a *Complex) IsEqualTo(expected complex128) *Complex
func (*Complex) IsNotEqualTo ¶
func (a *Complex) IsNotEqualTo(unexpected complex128) *Complex
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
func (*Int) IsAnswerToTheUltimateQuestionOfLife ¶
func (*Int) IsDivisibleBy ¶
func (*Int) IsGreaterOrEqualTo ¶
func (*Int) IsGreaterThan ¶
func (*Int) IsLessOrEqualTo ¶
func (*Int) IsLessThan ¶
func (*Int) IsNegative ¶
func (*Int) IsNonNegative ¶
func (*Int) IsNonPositive ¶
func (*Int) IsNotBetween ¶
func (*Int) IsNotDivisibleBy ¶
func (*Int) IsNotEqualTo ¶
func (*Int) IsNotPrime ¶
func (*Int) IsPositive ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) ThatComplex ¶
func (p *Provider) ThatComplex(actual complex128) *Complex
func (*Provider) ThatString ¶
func (*Provider) ThatUint64 ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (*String) DoesNotContain ¶
func (*String) IsLowerCase ¶
func (*String) IsNotEmpty ¶
func (*String) IsNotEqualTo ¶
func (*String) IsNotInSlice ¶
func (*String) IsNotLowerCase ¶
func (*String) IsNotUpperCase ¶
func (*String) IsUpperCase ¶
Click to show internal directories.
Click to hide internal directories.