-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
680 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
# 第九章 测试 # | ||
|
||
Go语言从开发初期就注意了测试用例的编写。特别是静态语言,由于调试没有动态语言那么方便,所以能最快最方便地编写一个测试用例就显得非常重要了。 | ||
Go 语言从开发初期就注意了测试用例的编写。特别是静态语言,由于调试没有动态语言那么方便,所以能最快最方便地编写一个测试用例就显得非常重要了。 | ||
|
||
本章内容涵盖了Go标准库中的4个包: | ||
本章内容涵盖了 Go 标准库中的 2 个包: | ||
|
||
* *testing* 方便进行 Go 包的自动化单元测试 | ||
* *testing/iotest* 方便进行 `io` 测试,实现了 `io.Reader` 和 `io.Writer` | ||
* *testing/quick* 进行黑盒测试的辅助功能包 | ||
* *testing* 方便进行 Go 包的自动化单元测试、基准测试 | ||
* *net/http/httptest* 提供测试 `HTTP` 的工具 | ||
|
||
|
||
# 导航 # | ||
|
||
- [第二章](/chapter09/09.0.md) | ||
- 下一节:[testing - 自动化单元测试](09.1.md) | ||
- [第八章](/chapter08/08.0.md) | ||
- 下一节:[testing - 单元测试](09.1.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.