so

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func The

func The(actual interface{}, assertion assertion, expected ...interface{}) error

The is used as in so.The(thing, should.Equal, otherThing)

Types

type TestingThat

type TestingThat struct {
	// contains filtered or unexported fields
}

TestingThat is an intermediate type, not to be instantiated directly

func With

func With(t testingT) *TestingThat

With allows assertions as in: so.With(t).So(actual, should.Equal, expected)

func (*TestingThat) The

func (this *TestingThat) The(actual interface{}, assertion assertion, expected ...interface{})

The as a method is analogous to the standalone The function and reports errors directly to the previously provided *testing.T as in: so.With(t).The(actual, should.Equal, expected)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL