Discover Packages
github.com/cloud-lada/backend
pkg
testutil
package
Version:
v0.1.0-alpha5
Opens a new window with list of versions in this module.
Published: Jun 4, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package testutil provides test helper functions.
Context returns a context.Context that is cancelled when the test finishes.
Postgres returns an sql.DB instance assumed to be available on localhost:5432. Migrations are performed and all
data is deleted once the test is complete.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.