Documentation ¶
Overview ¶
Package should info: github.com/mdwhatcott/testing/should@v0.20.1 (a little copy-paste is better than a little dependency) AUTO-GENERATED: 2023-01-18 14:06:49.960562 -0700 MST m=+0.003159418
Index ¶
- Variables
- func BeChronological(actual any, expected ...any) error
- func BeEmpty(actual any, expected ...any) error
- func BeFalse(actual any, expected ...any) error
- func BeGreaterThan(actual any, EXPECTED ...any) error
- func BeGreaterThanOrEqualTo(actual any, expected ...any) error
- func BeIn(actual any, expected ...any) error
- func BeLessThan(actual any, EXPECTED ...any) error
- func BeLessThanOrEqualTo(actual any, expected ...any) error
- func BeNil(actual any, expected ...any) error
- func BeTrue(actual any, expected ...any) error
- func Contain(actual any, expected ...any) error
- func EndWith(actual any, expected ...any) error
- func Equal(actual any, EXPECTED ...any) error
- func HappenAfter(actual any, expected ...any) error
- func HappenBefore(actual any, expected ...any) error
- func HappenOn(actual any, expected ...any) error
- func HaveLength(actual any, expected ...any) error
- func Panic(actual any, expected ...any) (err error)
- func Run(fixture any, options ...Option)
- func So(t *testing.T, actual any, assertion Func, expected ...any)
- func StartWith(actual any, expected ...any) error
- func WrapError(actual any, expected ...any) error
- type CompositeReporter
- type Func
- type LogReporter
- type Opt
- type Option
- type Reporter
- type T
- type TestingReporter
- type WriterReporter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExpectedCountInvalid = errors.New("expected count invalid") ErrTypeMismatch = errors.New("type mismatch") ErrKindMismatch = errors.New("kind mismatch") ErrAssertionFailure = errors.New("assertion failure") )
View Source
var NOT negated
Functions ¶
func BeChronological ¶
func BeGreaterThan ¶
func BeGreaterThanOrEqualTo ¶
func BeLessThan ¶
func BeLessThanOrEqualTo ¶
func HappenAfter ¶
func HappenBefore ¶
func HaveLength ¶
Types ¶
type CompositeReporter ¶
type CompositeReporter struct {
// contains filtered or unexported fields
}
func NewCompositeReporter ¶
func NewCompositeReporter(reporters ...Reporter) *CompositeReporter
func (*CompositeReporter) Report ¶
func (this *CompositeReporter) Report(err error)
type LogReporter ¶
type LogReporter struct {
// contains filtered or unexported fields
}
func NewLogReporter ¶
func NewLogReporter(logger *log.Logger) *LogReporter
func (LogReporter) Report ¶
func (this LogReporter) Report(err error)
type Opt ¶
type Opt struct{}
var Options Opt
func (Opt) FreshFixture ¶
func (Opt) IntegrationTests ¶
func (Opt) ParallelFixture ¶
func (Opt) ParallelTests ¶
func (Opt) SharedFixture ¶
type TestingReporter ¶
func NewTestingReporter ¶
func NewTestingReporter(t *testing.T) *TestingReporter
func (*TestingReporter) Report ¶
func (this *TestingReporter) Report(err error)
type WriterReporter ¶
func NewWriterReporter ¶
func NewWriterReporter(writer io.Writer) *WriterReporter
func (*WriterReporter) Report ¶
func (this *WriterReporter) Report(err error)
Click to show internal directories.
Click to hide internal directories.