(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func Test_AddErrorCount_1(t *testing.T) { |
| 55 | var wg sync.WaitGroup |
| 56 | wg.Add(2) |
| 57 | |
| 58 | go addErrorCount(&wg, 50) |
| 59 | |
| 60 | go addErrorCount(&wg, 60) |
| 61 | |
| 62 | wg.Wait() |
| 63 | |
| 64 | test.Equal(t, uint64(110), GlobalState.TotalErrorCount) |
| 65 | } |
| 66 | |
| 67 | func Test_AddErrorCount_2(t *testing.T) { |
| 68 | var num, count uint64 |
nothing calls this directly
no test coverage detected