MCPcopy Create free account
hub / github.com/devfeel/mapper / Test_Mapper

Function Test_Mapper

mapper_test.go:196–206  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

194}
195
196func 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
208func Test_MapperSlice(t *testing.T) {
209 SetEnabledTypeChecking(true)

Callers

nothing calls this directly

Calls 2

SetEnabledTypeCheckingFunction · 0.85
MapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…