- Distributed Computing with Go
- V.N. Nikhil Anurag
- 82字
- 2021-06-24 18:36:09
Running tests in nil_test.go
We run three tests, where two test cases will pass and one will fail. This way we can see the tick mark and cross mark in action:
$ go test -v ./nil_test.go === RUN TestServer === RUN TestServer/Request_correct_URL === RUN TestServer/Request_incorrect_URL === RUN TestServer/Fail_for_no_reason --- FAIL: TestServer (0.00s) --- PASS: TestServer/Request_correct_URL (0.00s) nil_test.go:55: Got 1. == Got 1.--- PASS: TestServer/Request_incorrect_URL (0.00s) nil_test.go:55: Got None. == Got None.
--- FAIL: TestServer/Fail_for_no_reason (0.00s)
nil_test.go:59: + != -
FAIL
exit status 1
FAIL command-line-arguments 0.003s
推薦閱讀
- Linux運維之道(第3版)
- Puppet實戰
- Ansible權威指南
- 精通Linux內核開發
- SharePoint 2013 WCM Advanced Cookbook
- Linux集群和自動化運維
- 奔跑吧 Linux內核(入門篇)
- 細說Linux基礎知識
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- Advanced TypeScript Programming Projects
- Windows Vista終極技巧金典
- Linux軟件管理平臺設計與實現
- Mastering Windows 8 C++ App Development
- Linux從入門到精通(視頻教學版)
- Azure Resource Manager Templates Quick Start Guide