書名: Distributed Computing with Go作者名: V.N. Nikhil Anurag本章字數(shù): 72字更新時間: 2021-06-24 18:36:09
Running tests in addInt_test.go
Let's now run the tests in this file, and we are expecting each of the row in the testCases table, which we ran, to be treated as a separate test:
$ go test -v ./{addInt.go,addInt_test.go} === RUN TestAddInt === RUN TestAddInt/addInt()_->_0 === RUN TestAddInt/addInt([]int{10,_20,_100})_->_130 --- PASS: TestAddInt (0.00s) --- PASS: TestAddInt/addInt()_->_0 (0.00s) addInt_test.go:23: 0 == 0 --- PASS: TestAddInt/addInt([]int{10,_20,_100})_->_130 (0.00s) addInt_test.go:23: 130 == 130 PASS ok command-line-arguments 0.001s
推薦閱讀
- Linux設備驅動開發(fā)詳解:基于最新的Linux4.0內核
- 樂學Windows操作系統(tǒng)
- Mastering ElasticSearch
- 從零開始寫Linux內核:一書學透核心原理與實現(xiàn)
- 大學計算機應用基礎實踐教程(Windows 7+Office 2013)
- 嵌入式Linux系統(tǒng)開發(fā):基于Yocto Project
- 精解Windows8
- Windows Phone應用程序開發(fā)
- Linux操作系統(tǒng)應用編程
- 8051軟核處理器設計實戰(zhàn)
- Mobile First Design with HTML5 and CSS3
- VMware NSX Cookbook
- 注冊表應用完全DIY
- Windows 7應用入門與技巧
- 分布式系統(tǒng)設計實踐