(b *testing.B)
| 650 | } |
| 651 | |
| 652 | func BenchmarkStructExceptFailureParallel(b *testing.B) { |
| 653 | validate := New() |
| 654 | |
| 655 | type Test struct { |
| 656 | Name string `validate:"required"` |
| 657 | NickName string `validate:"required"` |
| 658 | } |
| 659 | |
| 660 | test := &Test{ |
| 661 | Name: "Joey Bloggs", |
| 662 | } |
| 663 | |
| 664 | b.ResetTimer() |
| 665 | b.RunParallel(func(pb *testing.PB) { |
| 666 | for pb.Next() { |
| 667 | _ = validate.StructExcept(test, "Name") |
| 668 | } |
| 669 | }) |
| 670 | } |
| 671 | |
| 672 | func BenchmarkStructSimpleCrossFieldSuccess(b *testing.B) { |
| 673 | validate := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…