- Distributed Computing with Go
- V.N. Nikhil Anurag
- 76字
- 2021-06-24 18:36:09
Running tests in variadic_test.go
Let's run these tests and see the output. We'll use the -v flag while running the tests to see the output of each individual test:
$ go test -v ./{variadic_test.go,variadic.go} === RUN TestSimpleVariadicToSlice --- PASS: TestSimpleVariadicToSlice (0.00s) variadic_test.go:10: simpleVariadicToSlice() -> nil variadic_test.go:26: simpleVariadicToSlice(1, 2, 3) -> []int{1, 2, 3} variadic_test.go:41: simpleVariadicToSlice([]int{1, 2, 3}...) -> []int{1, 2, 3} === RUN TestMixedVariadicToSlice --- PASS: TestMixedVariadicToSlice (0.00s) variadic_test.go:49: Received as expected: Bob, <nil slice> PASS ok command-line-arguments 0.001s
推薦閱讀
- Learning OpenDaylight
- Windows Server 2019 Cookbook
- Linux運(yùn)維實(shí)戰(zhàn):CentOS7.6操作系統(tǒng)從入門到精通
- Windows Vista基礎(chǔ)與應(yīng)用精品教程
- Kali Linux滲透測試全流程詳解
- Linux網(wǎng)絡(luò)操作系統(tǒng)與實(shí)訓(xùn)(第三版)
- Linux操作系統(tǒng)應(yīng)用編程
- Windows Server 2012網(wǎng)絡(luò)操作系統(tǒng)企業(yè)應(yīng)用案例詳解
- Kali Linux 2018:Windows Penetration Testing
- Learning Magento 2 Administration
- OpenStack系統(tǒng)架構(gòu)設(shè)計(jì)實(shí)戰(zhàn)
- Windows Server 2008組網(wǎng)技術(shù)與實(shí)訓(xùn)(第3版)
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程(Windows 7+MS Office 2010)
- Zabbix監(jiān)控系統(tǒng)之深度解析和實(shí)踐
- Learn OpenShift