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

Function TestEmbeddedSimple

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

Source from the content-addressed store, hash-verified

94}
95
96func TestEmbeddedSimple(t *testing.T) {
97 type UUID [16]byte
98 type MyID struct {
99 UUID
100 }
101 type Item struct {
102 ID MyID
103 }
104 z := Item{}
105
106 m := NewMapper("db")
107 m.TypeMap(reflect.TypeOf(z))
108}
109
110func TestBasicEmbeddedWithTags(t *testing.T) {
111 type Foo struct {

Callers

nothing calls this directly

Calls 2

TypeMapMethod · 0.95
NewMapperFunction · 0.85

Tested by

no test coverage detected