Export for testing
This source file contains name aliases of all package-private functions
that need to be called from unit tests. Aliases should start with uppercase
letter because unit tests belong to different package.
Please look into the following blogpost:
https://medium.com/@robiplus/golang-trick-export-for-test-aa16cbd7b8cd
to see why this trick is needed.
nolint
|
var (
CreateStorage = createStorage
StartService = startService
StopService = stopService
CloseStorage = closeStorage
PrepareDB = prepareDB
StartConsumer = startConsumer
StartServer = startServer
PrintVersionInfo = printVersionInfo
PrintHelp = printHelp
PrintConfig = printConfig
PrintEnv = printEnv
GetDBForMigrations = getDBForMigrations
PrintMigrationInfo = printMigrationInfo
SetMigrationVersion = setMigrationVersion
PerformMigrations = performMigrations
AutoMigratePtr = & autoMigrate
Main = main
FillInInfoParams = fillInInfoParams
)
|