Documentation ¶
Index ¶
- func Assert(value, expect interface{})
- func AssertEQ(value, expect interface{})
- func AssertGE(value, expect interface{})
- func AssertGT(value, expect interface{})
- func AssertIN(value, expect interface{})
- func AssertLE(value, expect interface{})
- func AssertLT(value, expect interface{})
- func AssertNE(value, expect interface{})
- func AssertNI(value, expect interface{})
- func AssertNQ(value, expect interface{})
- func AssertNil(value interface{})
- func C(t *testing.T, f func(t *T))
- func Case(t *testing.T, f func())
- func Error(message ...interface{})
- func Fatal(message ...interface{})
- type T
- func (that *T) Assert(value, expect interface{})
- func (that *T) AssertEQ(value, expect interface{})
- func (that *T) AssertGE(value, expect interface{})
- func (that *T) AssertGT(value, expect interface{})
- func (that *T) AssertIN(value, expect interface{})
- func (that *T) AssertLE(value, expect interface{})
- func (that *T) AssertLT(value, expect interface{})
- func (that *T) AssertNE(value, expect interface{})
- func (that *T) AssertNI(value, expect interface{})
- func (that *T) AssertNQ(value, expect interface{})
- func (that *T) AssertNil(value interface{})
- func (that *T) Error(message ...interface{})
- func (that *T) Fatal(message ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEQ ¶
func AssertEQ(value, expect interface{})
AssertEQ 判断<value>和<expect>两个对象是否相等,必须值与类型都相等
func AssertNI ¶
func AssertNI(value, expect interface{})
AssertNI not in 判断<expect>的值是否包含<value>的值,如果包含则失败
func AssertNQ ¶
func AssertNQ(value, expect interface{})
AssertNQ 判断<value>和<expect>的值和类型是否相等,如果相等则报错
Types ¶
type T ¶
T 是测试单元的管理对象
func (*T) Assert ¶
func (that *T) Assert(value, expect interface{})
Assert 判断<value>和<expect>两个对象值是否相等
func (*T) AssertEQ ¶
func (that *T) AssertEQ(value, expect interface{})
AssertEQ 判断<value>和<expect>两个对象是否相等,必须值与类型都相等
func (*T) AssertGE ¶
func (that *T) AssertGE(value, expect interface{})
AssertGE 判断<value>的值是否大于等于<expect>的值
func (*T) AssertGT ¶
func (that *T) AssertGT(value, expect interface{})
AssertGT 判断<value>的值是否大于<expect>的值
func (*T) AssertIN ¶
func (that *T) AssertIN(value, expect interface{})
AssertIN 判断<expect>的值是否包含<value>的值
func (*T) AssertLE ¶
func (that *T) AssertLE(value, expect interface{})
AssertLE 判断<value>的值是否小于等于<expect>的值
func (*T) AssertLT ¶
func (that *T) AssertLT(value, expect interface{})
AssertLT 判断<value>的值是否小于<expect>的值
func (*T) AssertNE ¶
func (that *T) AssertNE(value, expect interface{})
AssertNE 判断<value>和<expect>的值是否相等,如果相等则报错
func (*T) AssertNI ¶
func (that *T) AssertNI(value, expect interface{})
AssertNI not in 判断<expect>的值是否包含<value>的值,如果包含则失败
Click to show internal directories.
Click to hide internal directories.