Documentation
¶
Index ¶
- Variables
- func NewExpectation(code int, method, path string, ts ...Tanage) (*expectation, error)
- func NoTanage(code int, method, path string) (*expectation, error)
- func NotFoundExpectation(method, path string, ts ...Tanage) (*expectation, error)
- func TxstingApp(t *testing.T, name string, conf ...app.Config) *app.App
- func VerboseTxstingApp(t *testing.T, name string, conf ...app.Config) *app.App
- type Expectation
- type Performer
- func MultiPerformer(t *testing.T, a TxstApp, es ...Expectation) Performer
- func SessionPerformer(t *testing.T, a TxstApp, es ...Expectation) Performer
- func SimplePerformer(t *testing.T, a TxstApp, es ...Expectation) Performer
- func ZeroExpectationPerformer(t *testing.T, a TxstApp, code int, method, path string) Performer
- type Tanage
- type TxstApp
Constants ¶
This section is empty.
Variables ¶
View Source
var METHODS []string = []string{"GET", "POST", "PATCH", "DELETE", "PUT", "OPTIONS", "HEAD"}
Functions ¶
func NewExpectation ¶
func NotFoundExpectation ¶
Types ¶
type Expectation ¶
type Performer ¶
type Performer interface {
Register(*testing.T, TxstApp, ...Expectation)
Perform()
Expectations(...Expectation) []Expectation
}
func MultiPerformer ¶
func MultiPerformer(t *testing.T, a TxstApp, es ...Expectation) Performer
MultiPerformer is a Performer for any number of Expectations.
func SessionPerformer ¶
func SessionPerformer(t *testing.T, a TxstApp, es ...Expectation) Performer
SessionPerformer is a Performer for any number of Expectations using the same session.
func SimplePerformer ¶
func SimplePerformer(t *testing.T, a TxstApp, es ...Expectation) Performer
SimplePerformer is a Performer for a maximum of one Expectation.
Click to show internal directories.
Click to hide internal directories.

