Goland no tests were run
引用
原因
Instead of `fmt.Printf(...` in `AddTwoNumbers` try either `fmt.Println(...` or `fmt.Printf("foo\n')`
The absence of the newline in the output of your `AddTwoNumbers` method is is causing the format of the test execution outputs to not have each test in a new line. The test runner is not being able to interpret that a test was run. Adding that newline, keeps a clean output.
处理方案
func TestMakeSlice(t *testing.T) {
// user test
// add println to avoid "goland No Tests Were Run"
fmt.Println("")