(b *testing.B)
| 122 | } |
| 123 | |
| 124 | func BenchmarkFill(b *testing.B) { |
| 125 | var ( |
| 126 | p = GetTestPath() |
| 127 | wx, wy = 512, 512 |
| 128 | img = image.NewRGBA(image.Rect(0, 0, wx, wy)) |
| 129 | scanner = scan.NewScanner(scan.NewImgSpanner(img), wx, wy) |
| 130 | ) |
| 131 | f := NewFiller(wx, wy, scanner) |
| 132 | b.ResetTimer() |
| 133 | for i := 0; i < b.N; i++ { |
| 134 | p.AddTo(f) |
| 135 | f.Draw() |
| 136 | f.Clear() |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | func BenchmarkDash(b *testing.B) { |
| 141 | var ( |
nothing calls this directly
no test coverage detected