Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DispatcherTester ¶
DispatcherTester defines a query runner tester.
func Test ¶
func Test(t testing.TB) DispatcherTester
Test runs the test.
Example:
commandHandler := &mock.ConcreteCommandHandlerStub{} Test(t)( Given("TestCommand", commandHandler.Handle), When(context.Background(), mock.TestCommand{}), ThenOk(), )
type GivenFn ¶
type GivenFn func() (cmdhandler.CommandHandler, error)
GivenFn is a test init function.
type ThenFn ¶
ThenFn prepares the Checker.
func ThenFailWith ¶
ThenFailWith asserts that the expected error occurred.
Click to show internal directories.
Click to hide internal directories.