Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseTest ¶
type BaseTest struct {
// contains filtered or unexported fields
}
func NewBaseTest ¶
func (*BaseTest) Description ¶
func (*BaseTest) Execute ¶
func (b *BaseTest) Execute(ctx *TestContext) *TestResult
func (*BaseTest) GetDescription ¶
func (*BaseTest) TearDown ¶
func (b *BaseTest) TearDown(ctx *TestContext)
type GenericMap ¶
type GenericMap struct {
// contains filtered or unexported fields
}
func (*GenericMap) Get ¶
func (g *GenericMap) Get(key string) interface{}
func (*GenericMap) GetStr ¶
func (g *GenericMap) GetStr(key string) string
func (*GenericMap) Put ¶
func (g *GenericMap) Put(key string, value interface{}) *GenericMap
func (*GenericMap) Remove ¶
func (g *GenericMap) Remove(key string)
type TestCase ¶
type TestCase interface {
GetName() string
GetDescription() string
Execute(ctx *TestContext) *TestResult
TearDown(ctx *TestContext)
// Builder methods
Name(name string) TestCase
Description(description string) TestCase
}
type TestContext ¶
type TestContext struct {
// contains filtered or unexported fields
}
func NewTestContext ¶
func NewTestContext() *TestContext
func (*TestContext) Get ¶
func (t *TestContext) Get(key string) interface{}
func (*TestContext) GetStr ¶
func (t *TestContext) GetStr(key string) string
func (*TestContext) Put ¶
func (t *TestContext) Put(key string, value interface{}) *TestContext
type TestFlow ¶
type TestFlow struct {
Results []*TestResult
// contains filtered or unexported fields
}
func Flow ¶
func Flow(ctx *TestContext) *TestFlow
type TestResult ¶
type TestResult struct {
Errors []string
// contains filtered or unexported fields
}
func Failure ¶
func Failure(errors ...string) *TestResult
func Success ¶
func Success() *TestResult
func (*TestResult) Failed ¶
func (t *TestResult) Failed()
func (*TestResult) IsFailed ¶
func (t *TestResult) IsFailed() bool
func (*TestResult) IsSucceeded ¶
func (t *TestResult) IsSucceeded() bool
func (*TestResult) Succeeded ¶
func (t *TestResult) Succeeded()
Click to show internal directories.
Click to hide internal directories.