Documentation
¶
Overview ¶
fetures: * snima stdout i stderr na disk kako se koji pojavi * vraca nekog tko radi asserts rezultat: stdout, stderr, exitcode \ * moze se postaviti
- working folder
- env
Index ¶
- func Cp(src, dst string) error
- func Show()
- type Env
- func (e *Env) Cd(folderName string) string
- func (e *Env) CpToWorkdir(from, to string)
- func (e *Env) Env(k, v string) *Env
- func (e *Env) GetWorkdir() string
- func (e *Env) Path(v string) *Env
- func (e *Env) Run(name string, arg ...string) *Expect
- func (e *Env) WaitForURL(url string, statusCodesToRetry ...int)
- func (e *Env) WithWorkdir(cb func())
- func (e *Env) Workdir(wd ...string) *Env
- type Expect
- func (e *Expect) Contains(str string) *Expect
- func (e *Expect) Duration() time.Duration
- func (e *Expect) Fail() *Expect
- func (e *Expect) GetAssertFailed() bool
- func (e *Expect) GetStdout() string
- func (e *Expect) SetAssertFailed()
- func (e *Expect) Stderr() *Expect
- func (e *Expect) Stdout() *Expect
- func (e *Expect) Success() *Expect
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func (*Env) CpToWorkdir ¶
func (*Env) GetWorkdir ¶
func (*Env) WaitForURL ¶ added in v0.2.6
func (*Env) WithWorkdir ¶
func (e *Env) WithWorkdir(cb func())
type Expect ¶
type Expect struct {
// contains filtered or unexported fields
}
func (*Expect) GetAssertFailed ¶
func (*Expect) SetAssertFailed ¶
func (e *Expect) SetAssertFailed()
Click to show internal directories.
Click to hide internal directories.