Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTestDB ¶
CleanupTestDB clears the database after each test if needed
func RunTests ¶
func RunTests(db *gorm.DB, t *testing.T, testCases []TestCase, baseURL string, handler http.HandlerFunc)
RunTests iterates through the given test cases and runs them using the provided handler
func SetupDBEntries ¶
SetupDBEntries reads a SQL file required for tests and executes it
Types ¶
Click to show internal directories.
Click to hide internal directories.