refactoring decorators_test
Vladimir Bauer
3 years ago
| 0 | 0 | package mpb_test |
| 1 | 1 | |
| 2 | 2 | import ( |
| 3 | "sync" | |
| 4 | 3 | "testing" |
| 5 | 4 | |
| 6 | 5 | "github.com/vbauerster/mpb/v8" |
| 182 | 181 | } |
| 183 | 182 | |
| 184 | 183 | for _, columnCase := range testCases { |
| 185 | var wg sync.WaitGroup | |
| 186 | mpb.SyncWidth(&wg, toSyncMatrix(columnCase)) | |
| 184 | mpb.SyncWidth(toSyncMatrix(columnCase)) | |
| 187 | 185 | var results []chan string |
| 188 | 186 | for _, step := range columnCase { |
| 189 | 187 | step := step |
| 201 | 199 | t.Errorf("Want: %q, Got: %q\n", want, res) |
| 202 | 200 | } |
| 203 | 201 | } |
| 204 | wg.Wait() | |
| 205 | 202 | } |
| 206 | 203 | } |
| 207 | 204 | |