Documentation ¶
Index ¶
- func Diff(o1, o2 interface{}, ignoreFields ...string) string
- func DiffMap(o1, o2 interface{}, ignoreFields ...string) string
- func DiffObj(o1, o2 interface{}, ignoreFields ...string) string
- func DiffSlice(o1, o2 interface{}, ignoreFields ...string) string
- func ExistMap(ss ...interface{}) map[interface{}]bool
- type DB
- type Do
- type TestCase
- type TestSuit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
TestDB the struct of the manager of database
func (*DB) ClearTables ¶
ClearTables delete tables from database
type TestCase ¶
type TestCase struct { Desc string Args interface{} WantResults interface{} WantErr string IgnoreFileds []string }
TestCase test case
func (*TestCase) DiffResult ¶
DiffResult cmp want and got diff, return empty string when equal
Click to show internal directories.
Click to hide internal directories.