{"modulePath":"github.com/redafd/code-core","version":"v1.8.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package test\n\n## Functions\n\n```go\nfunc LoadGitRepo(t *testing.T, ctx *context.Context)\n```\nLoadGitRepo load a git repo into a test context. Requires that ctx.Repo has already been populated.\n\n```go\nfunc LoadRepo(t *testing.T, ctx *context.Context, repoID int64)\n```\nLoadRepo load a repo into a test context.\n\n```go\nfunc LoadRepoCommit(t *testing.T, ctx *context.Context)\n```\nLoadRepoCommit loads a repo's commit into a test context.\n\n```go\nfunc LoadUser(t *testing.T, ctx *context.Context, userID int64)\n```\nLoadUser load a user into a test context.\n\n```go\nfunc MockContext(t *testing.T, path string) *context.Context\n```\nMockContext mock context for unit tests\n\n```go\nfunc RedirectURL(resp http.ResponseWriter) string\n```\nRedirectURL returns the redirect URL of a http response.\n\n","path":"github.com/redafd/code-core/modules/test","name":"test","synopsis":"","isRedistributable":true}
