- 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
推薦閱讀
- Mastering vRealize Operations Manager(Second Edition)
- Getting Started with oVirt 3.3
- 蘋果電腦玩全攻略 OS X 10.8 Mountain Lion
- Arch Linux Environment Setup How-to
- Learning Android Intents
- 操作系統基礎與實踐:基于openEuler平臺
- Linux性能優化
- Alfresco 4 Enterprise Content Management Implementation
- Application Development in iOS 7
- Fedora 12 Linux應用基礎
- Hands-On UX Design for Developers
- Kali Linux高級滲透測試
- CentOS 6 Linux Server Cookbook
- bash shell腳本編程經典實例(第2版)
- Instant Responsive Web Design