package matchers
import "go.opentelemetry.io/otel/internal/matchers"
Index ¶
- type Expectation
- func (e *Expectation) NotToBeNil()
- func (e *Expectation) NotToContain(expected interface{})
- func (e *Expectation) NotToEqual(expected interface{})
- func (e *Expectation) NotToPanic()
- func (e *Expectation) ToBeFalse()
- func (e *Expectation) ToBeNil()
- func (e *Expectation) ToBeTemporally(matcher TemporalMatcher, compareTo interface{})
- func (e *Expectation) ToBeTrue()
- func (e *Expectation) ToContain(expected interface{})
- func (e *Expectation) ToEqual(expected interface{})
- func (e *Expectation) ToMatchError(expected interface{})
- func (e *Expectation) ToMatchInAnyOrder(expected interface{})
- func (e *Expectation) ToSucceed()
- type Expecter
- type TemporalMatcher
Types ¶
type Expectation ¶
type Expectation struct {
// contains filtered or unexported fields
}
func (*Expectation) NotToBeNil ¶
func (e *Expectation) NotToBeNil()
func (*Expectation) NotToContain ¶
func (e *Expectation) NotToContain(expected interface{})
func (*Expectation) NotToEqual ¶
func (e *Expectation) NotToEqual(expected interface{})
func (*Expectation) NotToPanic ¶
func (e *Expectation) NotToPanic()
func (*Expectation) ToBeFalse ¶
func (e *Expectation) ToBeFalse()
func (*Expectation) ToBeNil ¶
func (e *Expectation) ToBeNil()
func (*Expectation) ToBeTemporally ¶
func (e *Expectation) ToBeTemporally(matcher TemporalMatcher, compareTo interface{})
func (*Expectation) ToBeTrue ¶
func (e *Expectation) ToBeTrue()
func (*Expectation) ToContain ¶
func (e *Expectation) ToContain(expected interface{})
func (*Expectation) ToEqual ¶
func (e *Expectation) ToEqual(expected interface{})
func (*Expectation) ToMatchError ¶
func (e *Expectation) ToMatchError(expected interface{})
func (*Expectation) ToMatchInAnyOrder ¶
func (e *Expectation) ToMatchInAnyOrder(expected interface{})
func (*Expectation) ToSucceed ¶
func (e *Expectation) ToSucceed()
type Expecter ¶
type Expecter struct {
// contains filtered or unexported fields
}
func NewExpecter ¶
func (*Expecter) Expect ¶
func (a *Expecter) Expect(actual interface{}) *Expectation
type TemporalMatcher ¶
type TemporalMatcher byte
const ( Before TemporalMatcher = iota BeforeOrSameTime After AfterOrSameTime )
Source Files ¶
expectation.go expecter.go package.go temporal_matcher.go
- Version
- v1.34.0 (latest)
- Published
- Jan 17, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 hours ago –
Tools for package owners.