Documentation ¶
Index ¶
- func LoadGitRepo(t *testing.T, ctx *context.Context)
- func LoadRepo(t *testing.T, ctx *context.Context, repoID int64)
- func LoadRepoCommit(t *testing.T, ctx *context.Context)
- func LoadUser(t *testing.T, ctx *context.Context, userID int64)
- func MockContext(t *testing.T, path string) *context.Context
- func RedirectURL(resp http.ResponseWriter) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadGitRepo ¶ added in v1.4.0
LoadGitRepo load a git repo into a test context. Requires that ctx.Repo has already been populated.
func LoadRepoCommit ¶
LoadRepoCommit loads a repo's commit into a test context.
func MockContext ¶
MockContext mock context for unit tests
func RedirectURL ¶ added in v1.4.0
func RedirectURL(resp http.ResponseWriter) string
RedirectURL returns the redirect URL of a http response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.