package
Version:
v0.0.0-...-10ffd4c
Opens a new window with list of versions in this module.
Published: Feb 23, 2020
License: MIT, MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
testify/assert
github.com/testify/assert弥补了golang没有assert关键字的缺憾。
关键点
- 每一个assert函数,都使用testing.T对象作为第一个参数,以此来输出错误信息。这样可以保证对
go test
的兼容性
- 每一个assert函数,都会根据断言成功与否来返回一个bool值,这样有利于做进一步的断言。
更多要点
请参考assert的GoDoc
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.