Documentation ¶
Index ¶
- Variables
- func AutoTest(data []TestData) error
- func CallFunction(f interface{}, args []interface{}) ([]interface{}, error)
- func ConvertTo(i interface{}, to reflect.Type) (interface{}, error)
- func Equal(t *testing.T, val, expect interface{})
- func False(t *testing.T, val bool)
- func GetFullFuncName(i interface{}) string
- func GetShortFuncName(i interface{}) string
- func HasError(t *testing.T, vals []interface{})
- func MustPanic(t *testing.T, f TestFunc)
- func Nil(t *testing.T, val interface{})
- func NoError(t *testing.T, vals []interface{})
- func NotEqual(t *testing.T, val, expect interface{})
- func NotNil(t *testing.T, val interface{})
- func Pack(vals ...interface{}) []interface{}
- func SourceInfo(skip ...int) string
- func True(t *testing.T, val bool)
- type CallerInfo
- type DoTestFunc
- type Expect
- type FailFunc
- type Ignore
- type Params
- type Results
- type StructNotNil
- type TestData
- type TestFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var GetFailFunc func(t *testing.T) FailFunc
View Source
var NoNil = StructNotNil{}
Functions ¶
func CallFunction ¶
func CallFunction(f interface{}, args []interface{}) ([]interface{}, error)
func GetFullFuncName ¶
func GetFullFuncName(i interface{}) string
func GetShortFuncName ¶
func GetShortFuncName(i interface{}) string
func Pack ¶
func Pack(vals ...interface{}) []interface{}
pack a number of values into a slice containing those values
func SourceInfo ¶
Types ¶
type CallerInfo ¶
type CallerInfo struct {
// contains filtered or unexported fields
}
func GetCallerInfo ¶
func GetCallerInfo(skip int) (CallerInfo, bool)
type DoTestFunc ¶
type DoTestFunc func(args ...interface{}) *Results
func Make ¶
func Make(t *testing.T, f ...failFunc) DoTestFunc
type StructNotNil ¶
type StructNotNil struct { }
Click to show internal directories.
Click to hide internal directories.