Documentation ¶
Index ¶
- Constants
- func GetFreePort(tcp bool, udp bool) (string, string, error)
- func ParseEnv(envvar string) (string, string, error)
- func ParseEnvs(r io.Reader) (map[string]string, error)
- func Wait(timeout time.Duration, f CheckFunc) error
- type CheckFunc
- type GiteaConfig
- type Process
- type TestEmbeddedEtcd
- type TestEtcd
- type TestExternalEtcd
- type TestGitea
Constants ¶
View Source
const ( MinPort = 2048 MaxPort = 16384 )
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
Hack to find a free tcp and udp port
Types ¶
type GiteaConfig ¶
type Process ¶
type Process struct { Cmd *gexpect.ExpectSubprocess // contains filtered or unexported fields }
func (*Process) StartExpect ¶
type TestEmbeddedEtcd ¶
type TestEmbeddedEtcd struct { *TestEtcd Etcd *embed.Etcd Endpoint string ListenAddress string Port string // contains filtered or unexported fields }
func NewTestEmbeddedEtcd ¶
func (*TestEmbeddedEtcd) Kill ¶
func (te *TestEmbeddedEtcd) Kill() error
func (*TestEmbeddedEtcd) Start ¶
func (te *TestEmbeddedEtcd) Start() error
func (*TestEmbeddedEtcd) Stop ¶
func (te *TestEmbeddedEtcd) Stop() error
type TestExternalEtcd ¶
type TestExternalEtcd struct { *TestEtcd Process Endpoint string ListenAddress string Port string // contains filtered or unexported fields }
func NewTestExternalEtcd ¶
Click to show internal directories.
Click to hide internal directories.