Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LaunchTestGitea ¶
func LaunchTestGitea(opts GiteaOpts) (TeardownTestGitea, TestGiteaInfo, error)
Launch a gitea server, running on http://127.0.0.1:3000 A teardown method is returned to shut it down. It is assumed that a recent gitea binary is located in the binary path.
func SetupDefaultTestEnvironment ¶
func SetupDefaultTestEnvironment() (TeardownTestGitea, TestGiteaInfo, string, error)
func WaitOnServer ¶
Types ¶
type DirectoryContent ¶
This is a test dependency that will most likely be migrated elsewhere. Do not depend on this.
func GetDirectoryContent ¶
func GetDirectoryContent(rootPath string, skipPrefix string) (DirectoryContent, error)
This is a test dependency that will most likely be migrated elsewhere. Do not depend on this.
func (DirectoryContent) Equals ¶
func (cont DirectoryContent) Equals(other DirectoryContent) bool
type GiteaOpts ¶
type GiteaTemplate ¶
type TeardownTestGitea ¶
type TeardownTestGitea func() error
type TestGiteaInfo ¶
Click to show internal directories.
Click to hide internal directories.