fluentassert:断言的可扩展流利API

时间:2021-04-01 16:41:33
【文件属性】:
文件名称:fluentassert:断言的可扩展流利API
文件大小:51KB
文件格式:ZIP
更新时间:2021-04-01 16:41:33
testing golang Go FluentAssert 断言的可扩展流利API。 :construction: 该库目前处于实验阶段。 如果您认为此存储库有价值且值得维护,请对其加注Star 。 Watch此存储库以获取有关新版本,问题等的通知。 例子 func TestFoo ( t * testing. T ) { got , err := Foo () f . Require ( t , err ). Nil ( "should be no error" ) // works like t.Fatalf, stops execution if fails f . Assert ( t , got ). Eq ( "bar" , "should return proper value" ) // works like t.Errorf, continues execution if fails } func Foo () (
【文件预览】:
fluentassert-main
----.goreleaser.yml(59B)
----.gitignore(621B)
----go.mod(48B)
----Makefile(911B)
----CODE_OF_CONDUCT.md(3KB)
----.devcontainer()
--------devcontainer.json(939B)
----LICENSE(1KB)
----.github()
--------workflows()
--------dependabot.yml(746B)
----pred()
--------predicates.go(518B)
----tools()
--------go.mod(106B)
--------tools.go(280B)
--------go.sum(100KB)
----README.md(4KB)
----.vscode()
--------settings.json(542B)
--------launch.json(483B)
--------tasks.json(445B)
--------extensions.json(55B)
----.golangci.yml(1KB)
----f()
--------assert_test.go(480B)
--------assert.go(1KB)
----.gitattributes(89B)

网友评论