Documentation
¶
Index ¶
- func FalseConditionErr(condition bool, msg string) error
- func FileNotFoundErr(filepath string) error
- func IgnoreErrorFromCaller(skip int, callerName string, err *error)
- func IsCaller(skip int, callerName string) bool
- func IsTestCaller(skip int) bool
- func NumNotEqualErr(msg string, expect, acture int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FalseConditionErr ¶
condition == true -> return err condition == false -> return nil
func IgnoreErrorFromCaller ¶
IgnoreErrorFromCaller 忽略来自指定调用者的异常(测试用例)
func NumNotEqualErr ¶
NumNotEqualErr 数量不匹配error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.