使用gotests命令,为例子中的TwoSum方法自动生成测试代码: ... of stdout > gotests -all -w twosum_test.go twosum.go > Generated TestTwoSum.
確定! 回上一頁