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

Function Test_Object_AutoMapper

mapper_object_test.go:260–270  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

258}
259
260func 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
272func Test_Object_AutoMapper_StructToMap(t *testing.T) {
273 m := NewMapper()

Callers

nothing calls this directly

Calls 2

NewMapperFunction · 0.85
AutoMapperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…