書名: 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
推薦閱讀
- Linux網絡管理與配置(第2版)
- Implementing Cisco UCS Solutions
- Installing and Configuring Windows 10:70-698 Exam Guide
- 循序漸進學Docker
- 異質結原理與器件
- Kubernetes從入門到實踐
- Linux服務器配置與管理
- AWS SysOps Cookbook
- Troubleshooting Docker
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- 統信UOS應用開發進階教程
- Linux 從入門到項目實踐(超值版)
- VMware vSphere 5.1 Cookbook
- Linux操作系統案例教程(第2版)
- Windows 8完全自學手冊