tests

package
v0.0.0-...-d215556 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package tests contains helpers for making it easier to write tests.

Index

Constants

This section is empty.

Variables

View Source
var Faker = gofakeit.New(rand.Uint64())

Functions

func Check

func Check(err error)

func CreateRegularUser

func CreateRegularUser(service core.UserService) *core.User

func DB

func DB(t *testing.T) *postgres.DB

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL