errors

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FalseConditionErr

func FalseConditionErr(condition bool, msg string) error

condition == true -> return err condition == false -> return nil

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