xtest

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(value, expect interface{})

是否相等测试检查

func AssertEq

func AssertEq(value, expect interface{})

是否相等测试检查

func AssertGE

func AssertGE(value, expect interface{})

大于等于测试检查

func AssertGt

func AssertGt(value, expect interface{})

大于测试检查

func AssertGte

func AssertGte(value, expect interface{})

大于等于测试检查, AssertGE的别名

func AssertIN

func AssertIN(value, expect interface{})

数组中包含某项检查

func AssertLE

func AssertLE(value, expect interface{})

小于等于测试检查

func AssertLt

func AssertLt(value, expect interface{})

小于测试检查

func AssertLte

func AssertLte(value, expect interface{})

小于等于测试检查,AssertLE别名

func AssertNE

func AssertNE(value, expect interface{})

不相等测试检查

func AssertNI

func AssertNI(value, expect interface{})

数组中不包含某项检查

func Case

func Case(t *testing.T, f func())

测试案例,检查panic并输出

func Error

func Error(message ...interface{})

panic错误信息, 使用Case捕获

func Fatal

func Fatal(message ...interface{})

输出错误信息并退出进程

Types

This section is empty.

Jump to

Keyboard shortcuts

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