(t *testing.T)
| 172 | } |
| 173 | |
| 174 | func TestParallelRenderError(t *testing.T) { |
| 175 | err := parallelRender(50, func(i int) error { |
| 176 | if i == 25 { |
| 177 | return fmt.Errorf("boom at %d", i) |
| 178 | } |
| 179 | return nil |
| 180 | }) |
| 181 | require.Error(t, err) |
| 182 | assert.Contains(t, err.Error(), "boom") |
| 183 | } |
| 184 | |
| 185 | func BenchmarkParallelRender(b *testing.B) { |
| 186 | const n = 50_000 |
nothing calls this directly
no test coverage detected
searching dependent graphs…