(t *testing.T)
| 194 | } |
| 195 | |
| 196 | func Test_Mapper(t *testing.T) { |
| 197 | SetEnabledTypeChecking(true) |
| 198 | from := &FromStruct{Name: "From", Sex: true, AA: "AA"} |
| 199 | to := &ToStruct{} |
| 200 | err := Mapper(from, to) |
| 201 | if err != nil { |
| 202 | t.Error("RunResult error: mapper error", err) |
| 203 | } else { |
| 204 | t.Log("RunResult success:", to) |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | func Test_MapperSlice(t *testing.T) { |
| 209 | SetEnabledTypeChecking(true) |
nothing calls this directly
no test coverage detected
searching dependent graphs…