Documentation ¶
Index ¶
- func AssertGenericReply(t *testing.T, body io.Reader)
- func AssertHeaders(t *testing.T, h http.Header)
- func CloseDatabase()
- func DBInjectDead()
- func DBInjectLiving()
- func DBQueryAll() []ventures.Venture
- func DBQueryFirst() *ventures.Venture
- func DBQueryMany(ids string) []ventures.Venture
- func DBQueryOne(id string) ventures.Venture
- func Inject(new ventures.NewVenture) *ventures.Venture
- func InjectAll(new []ventures.NewVenture) []ventures.Venture
- func ResetDatabase()
- func SetupEmptyTest()
- func SetupTest()
- func TearDown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertGenericReply ¶
AssertGenericReply asserts that the response 'body' contains a generic reply.
func AssertHeaders ¶
AssertHeaders asserts that the expected headers in 'h' have been supplied.
func DBInjectDead ¶
func DBInjectDead()
DBInjectDead injects a default set of dead Ventures into the database
func DBInjectLiving ¶
func DBInjectLiving()
DBInjectLiving injects a default set of living Ventures into the database
func DBQueryAll ¶
DBQueryAll queries the database for all living ventures
func DBQueryFirst ¶
DBQueryFirst queries the database for the first Venture encountered
func DBQueryMany ¶
DBQueryMany queries the database for Ventures with the specified IDs
func DBQueryOne ¶
DBQueryOne queries the database for a specific Venture
func Inject ¶
func Inject(new ventures.NewVenture) *ventures.Venture
Inject injects a Venture into the database.
func InjectAll ¶
func InjectAll(new []ventures.NewVenture) []ventures.Venture
InjectAll injects a slice of Ventures into the database.
func ResetDatabase ¶
func ResetDatabase()
ResetDatabase will reset the database by closing and deleting it then creating a new one.
func SetupEmptyTest ¶
func SetupEmptyTest()
SetupEmptyTest is run at the start of a test to setup the server but does not inject any test data.
Types ¶
This section is empty.