Documentation
¶
Overview ¶
Package conveyz extends the package convey with additional functionality and make it work with gomega.
Index ¶
- func And(ms ...types.GomegaMatcher) types.GomegaMatcher
- func BeADirectory() types.GomegaMatcher
- func BeARegularFile() types.GomegaMatcher
- func BeAnExistingFile() types.GomegaMatcher
- func BeAssignableToTypeOf(expected any) types.GomegaMatcher
- func BeClosed() types.GomegaMatcher
- func BeComparableTo(expected any, opts ...cmp.Option) types.GomegaMatcher
- func BeElementOf(elements ...any) types.GomegaMatcher
- func BeEmpty() types.GomegaMatcher
- func BeEquivalentTo(expected any) types.GomegaMatcher
- func BeFalse() types.GomegaMatcher
- func BeFalseBecause(format string, args ...any) types.GomegaMatcher
- func BeIdenticalTo(expected any) types.GomegaMatcher
- func BeKeyOf(element any) types.GomegaMatcher
- func BeNil() types.GomegaMatcher
- func BeNumerically(comparator string, compareTo ...any) types.GomegaMatcher
- func BeSent(arg any) types.GomegaMatcher
- func BeTemporally(comparator string, compareTo time.Time, threshold ...time.Duration) types.GomegaMatcher
- func BeTrue() types.GomegaMatcher
- func BeTrueBecause(format string, args ...any) types.GomegaMatcher
- func BeZero() types.GomegaMatcher
- func ConsistOf(elements ...any) types.GomegaMatcher
- func ContainElement(element any, result ...any) types.GomegaMatcher
- func ContainElements(elements ...any) types.GomegaMatcher
- func ContainSubstring(substr string, args ...any) types.GomegaMatcher
- func Convey(items ...any)
- func Equal(expected any) types.GomegaMatcher
- func FConvey(items ...any)
- func FocusConvey(items ...any)
- func GomegaExpect(actual any, extra ...any) gomega.Assertion
- func HaveCap(count int) types.GomegaMatcher
- func HaveEach(element any) types.GomegaMatcher
- func HaveExactElements(elements ...any) types.GomegaMatcher
- func HaveExistingField(field string) types.GomegaMatcher
- func HaveField(field string, expected any) types.GomegaMatcher
- func HaveHTTPBody(expected any) types.GomegaMatcher
- func HaveHTTPHeaderWithValue(header string, value any) types.GomegaMatcher
- func HaveHTTPStatus(expected ...any) types.GomegaMatcher
- func HaveKey(key any) types.GomegaMatcher
- func HaveKeyWithValue(key any, value any) types.GomegaMatcher
- func HaveLen(count int) types.GomegaMatcher
- func HaveOccurred() types.GomegaMatcher
- func HavePrefix(prefix string, args ...any) types.GomegaMatcher
- func HaveSuffix(suffix string, args ...any) types.GomegaMatcher
- func HaveValue(matcher types.GomegaMatcher) types.GomegaMatcher
- func MatchError(expected any, functionErrorDescription ...any) types.GomegaMatcher
- func MatchJSON(json any) types.GomegaMatcher
- func MatchRegexp(regexp string, args ...any) types.GomegaMatcher
- func MatchXML(xml any) types.GomegaMatcher
- func MatchYAML(yaml any) types.GomegaMatcher
- func Not(matcher types.GomegaMatcher) types.GomegaMatcher
- func Or(ms ...types.GomegaMatcher) types.GomegaMatcher
- func Panic() types.GomegaMatcher
- func PanicWith(expected any) types.GomegaMatcher
- func Receive(args ...any) types.GomegaMatcher
- func Reset(action func())
- func SConvey(items ...any)
- func Satisfy(predicate any) types.GomegaMatcher
- func SatisfyAll(matchers ...types.GomegaMatcher) types.GomegaMatcher
- func SatisfyAny(matchers ...types.GomegaMatcher) types.GomegaMatcher
- func SkipConvey(items ...any)
- func SkipConveyAsTODO(items ...any)
- func Succeed() types.GomegaMatcher
- func WithTransform(transform any, matcher types.GomegaMatcher) types.GomegaMatcher
- func Ω(actual any, extra ...any) gomega.Assertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶ added in v0.2.0
func And(ms ...types.GomegaMatcher) types.GomegaMatcher
func BeADirectory ¶ added in v0.2.0
func BeADirectory() types.GomegaMatcher
func BeARegularFile ¶ added in v0.2.0
func BeARegularFile() types.GomegaMatcher
func BeAnExistingFile ¶ added in v0.2.0
func BeAnExistingFile() types.GomegaMatcher
func BeAssignableToTypeOf ¶ added in v0.2.0
func BeAssignableToTypeOf(expected any) types.GomegaMatcher
func BeClosed ¶ added in v0.2.0
func BeClosed() types.GomegaMatcher
func BeComparableTo ¶ added in v0.2.0
func BeComparableTo(expected any, opts ...cmp.Option) types.GomegaMatcher
func BeElementOf ¶ added in v0.2.0
func BeElementOf(elements ...any) types.GomegaMatcher
func BeEmpty ¶ added in v0.2.0
func BeEmpty() types.GomegaMatcher
func BeEquivalentTo ¶ added in v0.2.0
func BeEquivalentTo(expected any) types.GomegaMatcher
func BeFalse ¶ added in v0.2.0
func BeFalse() types.GomegaMatcher
func BeFalseBecause ¶ added in v0.2.0
func BeFalseBecause(format string, args ...any) types.GomegaMatcher
func BeIdenticalTo ¶ added in v0.2.0
func BeIdenticalTo(expected any) types.GomegaMatcher
func BeKeyOf ¶ added in v0.2.0
func BeKeyOf(element any) types.GomegaMatcher
func BeNil ¶ added in v0.2.0
func BeNil() types.GomegaMatcher
func BeNumerically ¶ added in v0.2.0
func BeNumerically(comparator string, compareTo ...any) types.GomegaMatcher
func BeSent ¶ added in v0.2.0
func BeSent(arg any) types.GomegaMatcher
func BeTemporally ¶ added in v0.2.0
func BeTrue ¶ added in v0.2.0
func BeTrue() types.GomegaMatcher
func BeTrueBecause ¶ added in v0.2.0
func BeTrueBecause(format string, args ...any) types.GomegaMatcher
func BeZero ¶ added in v0.2.0
func BeZero() types.GomegaMatcher
func ConsistOf ¶ added in v0.2.0
func ConsistOf(elements ...any) types.GomegaMatcher
func ContainElement ¶ added in v0.2.0
func ContainElement(element any, result ...any) types.GomegaMatcher
func ContainElements ¶ added in v0.2.0
func ContainElements(elements ...any) types.GomegaMatcher
func ContainSubstring ¶ added in v0.2.0
func ContainSubstring(substr string, args ...any) types.GomegaMatcher
func Equal ¶ added in v0.2.0
func Equal(expected any) types.GomegaMatcher
func FConvey ¶
func FConvey(items ...any)
FConvey (alias of FocusConvey) runs the current scope and all child scopes, but skips all other scopes. It also makes the test fail.
func FocusConvey ¶
func FocusConvey(items ...any)
FocusConvey runs the current scope and all child scopes, but skips all other scopes. It also makes the test fail.
func GomegaExpect ¶
GomegaExpect is an adapter to make gomega work with goconvey.
Usage: Ω := GomegaExpect
func HaveCap ¶ added in v0.2.0
func HaveCap(count int) types.GomegaMatcher
func HaveEach ¶ added in v0.2.0
func HaveEach(element any) types.GomegaMatcher
func HaveExactElements ¶ added in v0.2.0
func HaveExactElements(elements ...any) types.GomegaMatcher
func HaveExistingField ¶ added in v0.2.0
func HaveExistingField(field string) types.GomegaMatcher
func HaveHTTPBody ¶ added in v0.2.0
func HaveHTTPBody(expected any) types.GomegaMatcher
func HaveHTTPHeaderWithValue ¶ added in v0.2.0
func HaveHTTPHeaderWithValue(header string, value any) types.GomegaMatcher
func HaveHTTPStatus ¶ added in v0.2.0
func HaveHTTPStatus(expected ...any) types.GomegaMatcher
func HaveKey ¶ added in v0.2.0
func HaveKey(key any) types.GomegaMatcher
func HaveKeyWithValue ¶ added in v0.2.0
func HaveKeyWithValue(key any, value any) types.GomegaMatcher
func HaveLen ¶ added in v0.2.0
func HaveLen(count int) types.GomegaMatcher
func HaveOccurred ¶ added in v0.2.0
func HaveOccurred() types.GomegaMatcher
func HavePrefix ¶ added in v0.2.0
func HavePrefix(prefix string, args ...any) types.GomegaMatcher
func HaveSuffix ¶ added in v0.2.0
func HaveSuffix(suffix string, args ...any) types.GomegaMatcher
func HaveValue ¶ added in v0.2.0
func HaveValue(matcher types.GomegaMatcher) types.GomegaMatcher
func MatchError ¶ added in v0.2.0
func MatchError(expected any, functionErrorDescription ...any) types.GomegaMatcher
func MatchJSON ¶ added in v0.2.0
func MatchJSON(json any) types.GomegaMatcher
func MatchRegexp ¶ added in v0.2.0
func MatchRegexp(regexp string, args ...any) types.GomegaMatcher
func MatchXML ¶ added in v0.2.0
func MatchXML(xml any) types.GomegaMatcher
func MatchYAML ¶ added in v0.2.0
func MatchYAML(yaml any) types.GomegaMatcher
func Not ¶ added in v0.2.0
func Not(matcher types.GomegaMatcher) types.GomegaMatcher
func Or ¶ added in v0.2.0
func Or(ms ...types.GomegaMatcher) types.GomegaMatcher
func Panic ¶ added in v0.2.0
func Panic() types.GomegaMatcher
func PanicWith ¶ added in v0.2.0
func PanicWith(expected any) types.GomegaMatcher
func Receive ¶ added in v0.2.0
func Receive(args ...any) types.GomegaMatcher
func Reset ¶
func Reset(action func())
Reset registers a cleanup function to run after each Convey() in the same scope.
func SConvey ¶
func SConvey(items ...any)
SConvey (alias of SkipConvey) skips the current scope and all child scopes. It also makes the test fail.
func Satisfy ¶ added in v0.2.0
func Satisfy(predicate any) types.GomegaMatcher
func SatisfyAll ¶ added in v0.2.0
func SatisfyAll(matchers ...types.GomegaMatcher) types.GomegaMatcher
func SatisfyAny ¶ added in v0.2.0
func SatisfyAny(matchers ...types.GomegaMatcher) types.GomegaMatcher
func SkipConvey ¶
func SkipConvey(items ...any)
SkipConvey skips the current scope and all child scopes. It also makes the test fail.
func SkipConveyAsTODO ¶ added in v0.1.0
func SkipConveyAsTODO(items ...any)
SkipConveyAsTODO is similar to SkipConvey but does not make the test fail.
func Succeed ¶ added in v0.2.0
func Succeed() types.GomegaMatcher
func WithTransform ¶ added in v0.2.0
func WithTransform(transform any, matcher types.GomegaMatcher) types.GomegaMatcher
Types ¶
This section is empty.