test

package
v1.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadGitRepo added in v1.4.0

func LoadGitRepo(t *testing.T, ctx *context.Context)

LoadGitRepo load a git repo into a test context. Requires that ctx.Repo has already been populated.

func LoadRepo added in v1.4.0

func LoadRepo(t *testing.T, ctx *context.Context, repoID int64)

LoadRepo load a repo into a test context.

func LoadRepoCommit added in v1.5.0

func LoadRepoCommit(t *testing.T, ctx *context.Context)

LoadRepoCommit loads a repo's commit into a test context.

func LoadUser added in v1.4.0

func LoadUser(t *testing.T, ctx *context.Context, userID int64)

LoadUser load a user into a test context.

func MockContext

func MockContext(t *testing.T, path string) *context.Context

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL