(t *testing.T)
| 258 | } |
| 259 | |
| 260 | func Test_Object_AutoMapper(t *testing.T) { |
| 261 | m := NewMapper() |
| 262 | from := &FromStruct{Name: "From", Sex: true, AA: "AA"} |
| 263 | to := &ToStruct{} |
| 264 | err := m.AutoMapper(from, to) |
| 265 | if err != nil { |
| 266 | t.Error("RunResult error: mapper error", err) |
| 267 | } else { |
| 268 | t.Log("RunResult success:", to) |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | func Test_Object_AutoMapper_StructToMap(t *testing.T) { |
| 273 | m := NewMapper() |
nothing calls this directly
no test coverage detected
searching dependent graphs…