(t *testing.T)
| 305 | } |
| 306 | |
| 307 | func Test_AutoMapper(t *testing.T) { |
| 308 | from := &FromStruct{Name: "From", Sex: true, AA: "AA"} |
| 309 | to := &ToStruct{} |
| 310 | err := AutoMapper(from, to) |
| 311 | if err != nil { |
| 312 | t.Error("RunResult error: mapper error", err) |
| 313 | } else { |
| 314 | t.Log("RunResult success:", to) |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | func Test_AutoMapper_StructToMap(t *testing.T) { |
| 319 | from := &FromStruct{Name: "From", Sex: true, AA: "AA"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…