Testify:您应该在Go中编写测试-开源

时间:2021-04-25 07:00:01
【文件属性】:
文件名称:Testify:您应该在Go中编写测试-开源
文件大小:106KB
文件格式:ZIP
更新时间:2021-04-25 07:00:01
开源软件 Testify是一个Go(golang)工具箱,其中包含用于测试代码的常见断言和模拟。 它具有一组特定的程序包,即:assert程序包,它可以在Go中提供更好的,更具可读性的测试代码; require包,与assert包类似​​,但是不返回布尔值,而是终止当前测试; 模拟包,可以轻松编写模拟对象; 和suite包,它提供的功能类似于更常见的面向对象语言的功能。 Testify易于安装或更新,并支持三个主要的Go版本(1.11、1.12和1.13)。
【文件预览】:
stretchr-testify-acba37e
----go.mod(216B)
----.github()
--------pull_request_template.md(366B)
----go.sum(931B)
----.travis.govet.sh(34B)
----http()
--------test_response_writer.go(1KB)
--------test_round_tripper.go(378B)
--------doc.go(62B)
----require()
--------require_forward.go.tmpl(173B)
--------forward_requirements.go(428B)
--------require.go.tmpl(187B)
--------forward_requirements_test.go(11KB)
--------requirements.go(1KB)
--------requirements_test.go(14KB)
--------doc.go(876B)
--------require.go(55KB)
--------require_forward.go(50KB)
----suite()
--------suite.go(5KB)
--------stats_test.go(712B)
--------stats.go(941B)
--------interfaces.go(1KB)
--------doc.go(3KB)
--------suite_test.go(16KB)
----.travis.gogenerate.sh(455B)
----.travis.gofmt.sh(278B)
----assert()
--------forward_assertions.go(428B)
--------assertion_compare.go(10KB)
--------assertion_forward.go(52KB)
--------errors.go(326B)
--------assertion_format.go(29KB)
--------forward_assertions_test.go(20KB)
--------assertion_compare_test.go(13KB)
--------assertion_forward.go.tmpl(185B)
--------http_assertions_test.go(6KB)
--------assertion_format.go.tmpl(184B)
--------assertion_order_test.go(7KB)
--------doc.go(1KB)
--------assertion_order.go(3KB)
--------assertions_test.go(59KB)
--------http_assertions.go(5KB)
--------assertions.go(49KB)
----CONTRIBUTING.md(3KB)
----.travis.yml(419B)
----LICENSE(1KB)
----doc.go(1KB)
----README.md(11KB)
----package_test.go(186B)
----mock()
--------mock_test.go(47KB)
--------mock.go(28KB)
--------doc.go(2KB)
----MAINTAINERS.md(186B)
----.gitignore(263B)
----_codegen()
--------go.mod(130B)
--------main.go(7KB)
--------go.sum(239B)
--------.gitignore(9B)

网友评论