TestSub 内部调用sub1、sub2和sub3三个子测试
(t *testing.T)
| 44 | |
| 45 | // TestSub 内部调用sub1、sub2和sub3三个子测试 |
| 46 | func TestSub(t *testing.T) { |
| 47 | // setup code |
| 48 | |
| 49 | t.Run("A=1", sub1) |
| 50 | t.Run("A=2", sub2) |
| 51 | t.Run("B=1", sub3) |
| 52 | |
| 53 | // tear-down code |
| 54 | } |
nothing calls this directly
no outgoing calls
no test coverage detected