- 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
推薦閱讀
- Linux操作系統(tǒng)基礎(chǔ)
- Haskell Financial Data Modeling and Predictive Analytics
- Linux集群和自動(dòng)化運(yùn)維
- 高性能Linux服務(wù)器構(gòu)建實(shí)戰(zhàn):系統(tǒng)安全、故障排查、自動(dòng)化運(yùn)維與集群架構(gòu)
- 嵌入式系統(tǒng)及其應(yīng)用(第三版)
- OpenStack系統(tǒng)架構(gòu)設(shè)計(jì)實(shí)戰(zhàn)
- jQuery UI Cookbook
- Linux服務(wù)器配置與管理
- Web Penetration Testing with Kali Linux(Third Edition)
- 操作系統(tǒng)之哲學(xué)原理第2版
- Getting Started with UDK
- 電腦辦公(Windows 7+Office 2016)入門與提高
- Python機(jī)器學(xué)習(xí)系統(tǒng)構(gòu)建(原書第3版)
- 數(shù)字系統(tǒng)設(shè)計(jì)與VHDL
- 微信小程序項(xiàng)目開發(fā)實(shí)戰(zhàn):用WePY、mpvue、Taro打造高效的小程序