MCPcopy Index your code
hub / github.com/devfeel/mapper / BenchmarkMapper

Function BenchmarkMapper

mapper_test.go:463–472  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

461}
462
463func BenchmarkMapper(b *testing.B) {
464 Register(&FromStruct{})
465 Register(&ToStruct{})
466 from := &FromStruct{Name: "From", Sex: true, AA: "AA"}
467 to := &ToStruct{}
468
469 for i := 0; i < b.N; i++ {
470 Mapper(from, to)
471 }
472}
473
474func BenchmarkAutoMapper(b *testing.B) {
475 Register(&FromStruct{})

Callers

nothing calls this directly

Calls 2

RegisterFunction · 0.85
MapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…