- Distributed Computing with Go
- V.N. Nikhil Anurag
- 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
推薦閱讀
- 電腦組裝與系統安裝
- pcDuino開發實戰
- Linux設備驅動開發詳解(第2版)
- 大學計算機應用基礎實踐教程(Windows 7+Office 2013)
- Ubuntu Linux操作系統
- Installing and Configuring Windows 10:70-698 Exam Guide
- Linux網絡內核分析與開發
- Instant Optimizing Embedded Systems using Busybox
- 注冊表應用完全DIY
- Ceph分布式存儲實戰
- Linux基礎使用與案例
- 大學計算機應用基礎實踐教程(Windows 7+MS Office 2010)
- Android應用性能優化最佳實踐
- 基于Arduino的嵌入式系統入門與實踐
- 電腦辦公(Windows10+Office2016)從新手到高手