package internal
import "github.com/onsi/gomega/internal"
Index ¶
- Constants
- type Assertion
- func NewAssertion(actualInput interface{}, g *Gomega, offset int, extra ...interface{}) *Assertion
- func (assertion *Assertion) NotTo(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
- func (assertion *Assertion) Should(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
- func (assertion *Assertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
- func (assertion *Assertion) To(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
- func (assertion *Assertion) ToNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
- type AsyncAssertion
- func NewAsyncAssertion(asyncType AsyncAssertionType, actualInput interface{}, g *Gomega, timeoutInterval time.Duration, pollingInterval time.Duration, offset int) *AsyncAssertion
- func (assertion *AsyncAssertion) Should(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
- func (assertion *AsyncAssertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
- type AsyncAssertionType
- type DurationBundle
- type Gomega
- func NewGomega(bundle DurationBundle) *Gomega
- func (g *Gomega) ConfigureWithFailHandler(fail types.GomegaFailHandler) *Gomega
- func (g *Gomega) ConfigureWithT(t types.GomegaTestingT) *Gomega
- func (g *Gomega) Consistently(actual interface{}, intervals ...interface{}) types.AsyncAssertion
- func (g *Gomega) ConsistentlyWithOffset(offset int, actual interface{}, intervals ...interface{}) types.AsyncAssertion
- func (g *Gomega) Eventually(actual interface{}, intervals ...interface{}) types.AsyncAssertion
- func (g *Gomega) EventuallyWithOffset(offset int, actual interface{}, intervals ...interface{}) types.AsyncAssertion
- func (g *Gomega) Expect(atual interface{}, extra ...interface{}) types.Assertion
- func (g *Gomega) ExpectWithOffset(offset int, actual interface{}, extra ...interface{}) types.Assertion
- func (g *Gomega) IsConfigured() bool
- func (g *Gomega) SetDefaultConsistentlyDuration(t time.Duration)
- func (g *Gomega) SetDefaultConsistentlyPollingInterval(t time.Duration)
- func (g *Gomega) SetDefaultEventuallyPollingInterval(t time.Duration)
- func (g *Gomega) SetDefaultEventuallyTimeout(t time.Duration)
- func (g *Gomega) Ω(atual interface{}, extra ...interface{}) types.Assertion
Constants ¶
const ( EventuallyTimeoutEnvVarName = "GOMEGA_DEFAULT_EVENTUALLY_TIMEOUT" EventuallyPollingIntervalEnvVarName = "GOMEGA_DEFAULT_EVENTUALLY_POLLING_INTERVAL" ConsistentlyDurationEnvVarName = "GOMEGA_DEFAULT_CONSISTENTLY_DURATION" ConsistentlyPollingIntervalEnvVarName = "GOMEGA_DEFAULT_CONSISTENTLY_POLLING_INTERVAL" )
Types ¶
type Assertion ¶
type Assertion struct {
// contains filtered or unexported fields
}
func NewAssertion ¶
func (*Assertion) NotTo ¶
func (assertion *Assertion) NotTo(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
func (*Assertion) Should ¶
func (assertion *Assertion) Should(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
func (*Assertion) ShouldNot ¶
func (assertion *Assertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
func (*Assertion) To ¶
func (assertion *Assertion) To(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
func (*Assertion) ToNot ¶
func (assertion *Assertion) ToNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
type AsyncAssertion ¶
type AsyncAssertion struct {
// contains filtered or unexported fields
}
func NewAsyncAssertion ¶
func NewAsyncAssertion(asyncType AsyncAssertionType, actualInput interface{}, g *Gomega, timeoutInterval time.Duration, pollingInterval time.Duration, offset int) *AsyncAssertion
func (*AsyncAssertion) Should ¶
func (assertion *AsyncAssertion) Should(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
func (*AsyncAssertion) ShouldNot ¶
func (assertion *AsyncAssertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...interface{}) bool
type AsyncAssertionType ¶
type AsyncAssertionType uint
const ( AsyncAssertionTypeEventually AsyncAssertionType = iota AsyncAssertionTypeConsistently )
type DurationBundle ¶
type DurationBundle struct { EventuallyTimeout time.Duration EventuallyPollingInterval time.Duration ConsistentlyDuration time.Duration ConsistentlyPollingInterval time.Duration }
func FetchDefaultDurationBundle ¶
func FetchDefaultDurationBundle() DurationBundle
type Gomega ¶
type Gomega struct { Fail types.GomegaFailHandler THelper func() DurationBundle DurationBundle }
func NewGomega ¶
func NewGomega(bundle DurationBundle) *Gomega
func (*Gomega) ConfigureWithFailHandler ¶
func (g *Gomega) ConfigureWithFailHandler(fail types.GomegaFailHandler) *Gomega
func (*Gomega) ConfigureWithT ¶
func (g *Gomega) ConfigureWithT(t types.GomegaTestingT) *Gomega
func (*Gomega) Consistently ¶
func (g *Gomega) Consistently(actual interface{}, intervals ...interface{}) types.AsyncAssertion
func (*Gomega) ConsistentlyWithOffset ¶
func (g *Gomega) ConsistentlyWithOffset(offset int, actual interface{}, intervals ...interface{}) types.AsyncAssertion
func (*Gomega) Eventually ¶
func (g *Gomega) Eventually(actual interface{}, intervals ...interface{}) types.AsyncAssertion
func (*Gomega) EventuallyWithOffset ¶
func (g *Gomega) EventuallyWithOffset(offset int, actual interface{}, intervals ...interface{}) types.AsyncAssertion
func (*Gomega) Expect ¶
func (*Gomega) ExpectWithOffset ¶
func (g *Gomega) ExpectWithOffset(offset int, actual interface{}, extra ...interface{}) types.Assertion
func (*Gomega) IsConfigured ¶
func (*Gomega) SetDefaultConsistentlyDuration ¶
func (*Gomega) SetDefaultConsistentlyPollingInterval ¶
func (*Gomega) SetDefaultEventuallyPollingInterval ¶
func (*Gomega) SetDefaultEventuallyTimeout ¶
func (*Gomega) Ω ¶
Source Files ¶
assertion.go async_assertion.go duration_bundle.go gomega.go
Directories ¶
Path | Synopsis |
---|---|
internal/testingtsupport |
- Version
- v1.16.0
- Published
- Aug 20, 2021
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 5 days ago –
Tools for package owners.