具有常见断言和模拟的工具包,可与标准库很好地配合使用-Golang开发

时间:2021-05-26 13:33:55
【文件属性】:
文件名称:具有常见断言和模拟的工具包,可与标准库很好地配合使用-Golang开发
文件大小:106KB
文件格式:ZIP
更新时间:2021-05-26 13:33:55
Golang Testing 证明-您应编写测试Go代码(golang)软件包集,这些软件包提供许多工具来证明您的代码将按预期运行。 功能包括:简单的断言模拟测试套件与一个Testify接口-Thou Shalt编写Tests Go代码(golang)程序包集,这些程序包提供了许多工具来证明您的代码将按预期运行。 功能包括:简单的断言模拟测试套件的接口和功能入门:用一行代码安装testify,或用另一行代码更新。有关在Go中编写测试代码的介绍,请参见http://golang.org/doc/code。 html#Testing查阅API文档http://godoc.org/github.com/stretchr/testify进行测试
【文件预览】:
testify-master
----require()
--------require_forward.go(51KB)
--------doc.go(876B)
--------forward_requirements_test.go(11KB)
--------require.go.tmpl(187B)
--------forward_requirements.go(428B)
--------requirements.go(1KB)
--------requirements_test.go(14KB)
--------require.go(56KB)
--------require_forward.go.tmpl(173B)
----.travis.yml(419B)
----_codegen()
--------main.go(7KB)
--------.gitignore(9B)
--------go.sum(239B)
--------go.mod(130B)
----doc.go(1KB)
----mock()
--------doc.go(2KB)
--------mock.go(29KB)
--------mock_test.go(48KB)
----.github()
--------pull_request_template.md(366B)
----.travis.gofmt.sh(278B)
----suite()
--------stats_test.go(712B)
--------doc.go(3KB)
--------suite.go(5KB)
--------interfaces.go(1KB)
--------suite_test.go(16KB)
--------stats.go(941B)
----.travis.govet.sh(34B)
----http()
--------doc.go(62B)
--------test_round_tripper.go(378B)
--------test_response_writer.go(1KB)
----LICENSE(1KB)
----CONTRIBUTING.md(3KB)
----.gitignore(263B)
----assert()
--------assertion_forward.go.tmpl(185B)
--------assertion_compare.go(10KB)
--------doc.go(1KB)
--------assertion_compare_test.go(14KB)
--------errors.go(326B)
--------assertion_format.go(30KB)
--------assertion_forward.go(53KB)
--------assertions.go(50KB)
--------http_assertions.go(5KB)
--------assertion_order_test.go(7KB)
--------assertion_format.go.tmpl(184B)
--------forward_assertions_test.go(21KB)
--------assertion_order.go(3KB)
--------forward_assertions.go(428B)
--------assertions_test.go(60KB)
--------http_assertions_test.go(6KB)
----go.sum(931B)
----README.md(11KB)
----package_test.go(186B)
----.travis.gogenerate.sh(455B)
----MAINTAINERS.md(186B)
----go.mod(216B)

网友评论