Documentation ¶
Index ¶
- Variables
- func AuthentifyRequest(t *testing.T, req *http.Request, u *sdk.User, pass string)
- func DeleteTestProject(t *testing.T, db database.QueryExecuter, key string) error
- func InsertAdminUser(t *testing.T, db *sql.DB) (*sdk.User, string, error)
- func InsertTestProject(t *testing.T, db database.QueryExecuter, key, name string) (*sdk.Project, error)
- func RandomString(t *testing.T, strlen int) string
- func SetupPG(t *testing.T) (*sql.DB, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DBDriver string
DBDriver is exported for testing purpose
Functions ¶
func AuthentifyRequest ¶
AuthentifyRequest have to be used only for tests
func DeleteTestProject ¶
DeleteTestProject delete a test project
func InsertAdminUser ¶
InsertAdminUser have to be used only for tests
func InsertTestProject ¶
func InsertTestProject(t *testing.T, db database.QueryExecuter, key, name string) (*sdk.Project, error)
InsertTestProject create a test project
func RandomString ¶
RandomString have to be used only for tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.