MCPcopy
hub / github.com/jmoiron/sqlx / TestRecursiveStruct

Function TestRecursiveStruct

reflectx/reflect_test.go:289–296  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

287}
288
289func TestRecursiveStruct(t *testing.T) {
290 type Person struct {
291 Parent *Person
292 }
293 m := NewMapperFunc("db", strings.ToLower)
294 var p *Person
295 m.TypeMap(reflect.TypeOf(p))
296}
297
298func TestFieldsEmbedded(t *testing.T) {
299 m := NewMapper("db")

Callers

nothing calls this directly

Calls 2

NewMapperFuncFunction · 0.85
TypeMapMethod · 0.80

Tested by

no test coverage detected