(b *testing.B)
| 107 | } |
| 108 | |
| 109 | func BenchmarkScan(b *testing.B) { |
| 110 | var ( |
| 111 | p = GetTestPath() |
| 112 | wx, wy = 512, 512 |
| 113 | img = image.NewRGBA(image.Rect(0, 0, wx, wy)) |
| 114 | scanner = scan.NewScanner(scan.NewImgSpanner(img), wx, wy) |
| 115 | ) |
| 116 | f := NewFiller(wx, wy, scanner) |
| 117 | p.AddTo(f) |
| 118 | b.ResetTimer() |
| 119 | for i := 0; i < b.N; i++ { |
| 120 | f.Draw() |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | func BenchmarkFill(b *testing.B) { |
| 125 | var ( |
nothing calls this directly
no test coverage detected