- 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
推薦閱讀
- 發(fā)布!設(shè)計與部署穩(wěn)定的分布式系統(tǒng)(第2版)
- Ansible權(quán)威指南
- Kubernetes網(wǎng)絡(luò)權(quán)威指南:基礎(chǔ)、原理與實踐
- 異質(zhì)結(jié)原理與器件
- 混沌工程實戰(zhàn):手把手教你實現(xiàn)系統(tǒng)穩(wěn)定性
- Linux就該這么學(xué)
- Cassandra 3.x High Availability(Second Edition)
- 分布式系統(tǒng)設(shè)計實踐
- Linux網(wǎng)絡(luò)操作系統(tǒng)項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- 鴻蒙HarmonyOS應(yīng)用開發(fā)入門
- Mastering Sass
- 15分鐘!畫出我的漫畫角色:賣萌篇
- 電腦辦公(Windows 7 + Office 2013)入門與提高
- Python機(jī)器學(xué)習(xí)系統(tǒng)構(gòu)建(原書第3版)
- Windows XP操作系統(tǒng)5日通