Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnvFile ¶
LoadEnvFile sets all the valid environment variables from the given filename
func SetupTestCareerProfile ¶
func SetupTestCareerProfile(email string) (careerProfile *types.CareerProfile, message string, err error)
SetupTestCareerProfile inserts a fake CareerProfile in MongoDB that can be used for testing
func SetupTestEnvironment ¶
SetupTestEnvironment sets fake environment variables used for testing. These should match the variables from .env
func SetupTestRouter ¶
func SetupTestRouter() (router *gin.Engine, recorder *httptest.ResponseRecorder)
SetupTestRouter initializes a gin router and a httptest recorder to mock http calls
Types ¶
Click to show internal directories.
Click to hide internal directories.