(b *testing.B)
| 328 | } |
| 329 | |
| 330 | func BenchmarkStructLevelValidationFailureParallel(b *testing.B) { |
| 331 | validate := New() |
| 332 | validate.RegisterStructValidation(StructValidationTestStruct, TestStruct{}) |
| 333 | |
| 334 | tst := TestStruct{ |
| 335 | String: "good value", |
| 336 | } |
| 337 | |
| 338 | b.ResetTimer() |
| 339 | b.RunParallel(func(pb *testing.PB) { |
| 340 | for pb.Next() { |
| 341 | _ = validate.Struct(tst) |
| 342 | } |
| 343 | }) |
| 344 | } |
| 345 | |
| 346 | func BenchmarkStructSimpleCustomTypeSuccess(b *testing.B) { |
| 347 | validate := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…