(b *testing.B)
| 483 | } |
| 484 | |
| 485 | func BenchmarkAutoMapper_Map(b *testing.B) { |
| 486 | from := &FromStruct{Name: "From", Sex: true, AA: "AA"} |
| 487 | to := make(map[string]interface{}) |
| 488 | |
| 489 | for i := 0; i < b.N; i++ { |
| 490 | Mapper(from, &to) |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | func BenchmarkMapperMap(b *testing.B) { |
| 495 | Register(&testStruct{}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…