Documentation
¶
Index ¶
- func AssertQueries(t *testing.T, buf *zaptest.Buffer, lines []string)
- func AssertQueriesRegexp(t *testing.T, buf *zaptest.Buffer, lines []string)
- func LoadFile(t *testing.T, pathParts ...string) []byte
- func SaveFile(t *testing.T, content []byte, pathParts ...string)
- func SetupLogger() (*zap.Logger, *zaptest.Buffer)
- func SetupRepository(t *testing.T, appName, dbUser, dbPass, dbName string, logger *zap.Logger, ...) (repository.PgRepository, func())
- func ShouldUpdateGoldenFiles() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertQueriesRegexp ¶
func SetupRepository ¶
func SetupRepository(t *testing.T, appName, dbUser, dbPass, dbName string, logger *zap.Logger, fixture ...interface{}) (repository.PgRepository, func())
SetupRepository returns a new repository and a tear down function
func ShouldUpdateGoldenFiles ¶
func ShouldUpdateGoldenFiles() bool
ShouldUpdateGoldenFiles return true if golden files should be updated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.