Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryerTester ¶
QueryerTester defines a query runner tester.
func Test ¶
func Test(t testing.TB) QueryerTester
Test runs the test.
Example:
want := &mock.TestReport{Value: 123} queryRunner := &mock.ConcreteQueryerStub{Rep: 123} Test(t)( Given("TestQuery", queryRunner.Run), When(context.Background(), mock.TestQuery{}, &mock.TestReport{}), Then(want), )
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.