(b *testing.B)
| 54 | } |
| 55 | |
| 56 | func BenchmarkCaptcha_VerifyCode_200_100(b *testing.B) { |
| 57 | runtime.GOMAXPROCS(4) |
| 58 | |
| 59 | b.RunParallel(func(pb *testing.PB) { |
| 60 | for pb.Next() { |
| 61 | var id = captcha.NewLen(6) |
| 62 | var writer = &bytes.Buffer{} |
| 63 | err := captcha.WriteImage(writer, id, 200, 100) |
| 64 | if err != nil { |
| 65 | b.Fatal(err) |
| 66 | } |
| 67 | _ = id |
| 68 | } |
| 69 | }) |
| 70 | } |
nothing calls this directly
no test coverage detected