書名: Distributed Computing with Go作者名: V.N. Nikhil Anurag本章字?jǐn)?shù): 82字更新時(shí)間: 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
推薦閱讀
- 樂學(xué)Windows操作系統(tǒng)
- Getting Started with oVirt 3.3
- 嵌入式Linux系統(tǒng)開發(fā):基于Yocto Project
- PLC控制系統(tǒng)應(yīng)用與維護(hù)
- Linux網(wǎng)絡(luò)內(nèi)核分析與開發(fā)
- 嵌入式Linux應(yīng)用開發(fā)菜鳥進(jìn)階
- 竹林蹊徑:深入淺出windows驅(qū)動(dòng)開發(fā)
- 嵌入式系統(tǒng)原理及開發(fā)
- 無蘋果不生活 The New iPad隨身寶典
- Learning Magento 2 Administration
- Learning BeagleBone
- Linux應(yīng)用大全 基礎(chǔ)與管理
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程(Windows 7+MS Office 2010)
- Java EE 8 High Performance
- Windows Azure實(shí)戰(zhàn)