Documentation ¶
Overview ¶
Package tests contains helpers for making it easier to write tests.
Index ¶
- Variables
- func Check(err error)
- func CreateRegularUser(service core.UserService) *core.User
- func DB(t *testing.T) *postgres.DB
- func DeleteAllAddresses(service core.AddressService)
- func DeleteAllOrganisations(service core.OrganisationService)
- func DeleteAllPermissions(service permissions.Service)
- func DeleteAllUsers(service core.UserService)
Constants ¶
This section is empty.
Variables ¶
View Source
var Faker = gofakeit.New(rand.Uint64())
Functions ¶
func CreateRegularUser ¶
func CreateRegularUser(service core.UserService) *core.User
func DeleteAllAddresses ¶
func DeleteAllAddresses(service core.AddressService)
func DeleteAllOrganisations ¶
func DeleteAllOrganisations(service core.OrganisationService)
func DeleteAllPermissions ¶
func DeleteAllPermissions(service permissions.Service)
func DeleteAllUsers ¶
func DeleteAllUsers(service core.UserService)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.