書名: Distributed Computing with Go作者名: V.N. Nikhil Anurag本章字?jǐn)?shù): 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從零開始學(xué)(視頻教學(xué)版)
- Google系統(tǒng)架構(gòu)解密:構(gòu)建安全可靠的系統(tǒng)
- UNIX操作系統(tǒng)設(shè)計
- 嵌入式Linux系統(tǒng)開發(fā):基于Yocto Project
- WindowsServer2012Hyper-V虛擬化部署與管理指南
- 高性能Linux服務(wù)器構(gòu)建實戰(zhàn):系統(tǒng)安全、故障排查、自動化運(yùn)維與集群架構(gòu)
- 深入Linux內(nèi)核架構(gòu)與底層原理(第2版)
- Instant Optimizing Embedded Systems using Busybox
- 深入理解eBPF與可觀測性
- Mobile First Design with HTML5 and CSS3
- 完美應(yīng)用RHEL 8
- 操作系統(tǒng)分析
- NetDevOps入門與實踐
- Django Project Blueprints
- Building Telephony Systems With Asterisk