Skip to content

Commit 0e69719

Browse files
author
Joakim Lundborg
committed
Add regression test
1 parent f5609c8 commit 0e69719

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

reflectx/reflect_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,20 @@ func TestBasicEmbedded(t *testing.T) {
9393
}
9494
}
9595

96+
func 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+
96110
func TestBasicEmbeddedWithTags(t *testing.T) {
97111
type Foo struct {
98112
A int `db:"a"`

0 commit comments

Comments
 (0)