Documentation
¶
Overview ¶
Package testmode provides functions to set special modes for tests, allowing to use actual Postgres or SQLite file for testing, especially for development purposes. Important: It should be used only in LOCAL tests. Calls of SetPostgresMode and SetFileSQLiteMode should not be committed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileSQLiteMode ¶
func CheckFileSQLiteMode() bool
CheckFileSQLiteMode checks if the test mode is set to use SQLite file
func CheckPostgresMode ¶
CheckPostgresMode checks if the test mode is set to use actual Postgres and returns the database name.
func DevelopmentOnly_SetFileSQLiteMode ¶
DevelopmentOnly_SetFileSQLiteMode sets the test mode to use SQLite file
func DevelopmentOnly_SetPostgresMode ¶
DevelopmentOnly_SetPostgresMode sets the test mode to use actual Postgres and sets the database name.
func DevelopmentOnly_SetPostgresModeWithName ¶
DevelopmentOnly_SetPostgresModeWithName sets the test mode to use actual Postgres and sets the database name.
Types ¶
This section is empty.