errors

package
v0.7.16-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileNotFoundErr

func FileNotFoundErr(filepath string) error

FileNotFoundErr 数量不匹配error

func IgnoreErrorFromCaller

func IgnoreErrorFromCaller(skip int, callerName string, err *error)

IgnoreErrorFromCaller 忽略来自指定调用者的异常(测试用例)

func IsCaller

func IsCaller(skip int, callerName string) bool

func IsTestCaller

func IsTestCaller(skip int) bool

IsTestCaller 判断调用者是否为test函数

func NumNotEqualErr

func NumNotEqualErr(msg string, expect, acture int) error

NumNotEqualErr 数量不匹配error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL