]> Cypherpunks repositories - gostls13.git/commit
internal/reflectlite: add type mirror with reflect test
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 5 Oct 2019 10:46:09 +0000 (17:46 +0700)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 7 Oct 2019 13:32:34 +0000 (13:32 +0000)
commit8b391060004dfc03c93a76faab4a0d208a60cc1b
tree377f704ac1829c749289b50a31b540a96d5dd19a
parentc7d81bc08646ca56d6fe560c77d99be933d7f6dd
internal/reflectlite: add type mirror with reflect test

Add test to check that struct type in reflectlite is mirror of reflect.
Note that the test does not check the field types, only check for number
of fields and field name are the same.

Updates #34486

Change-Id: Id5f9b26d35faec97863dd1fe7e5eab37d4913181
Reviewed-on: https://go-review.googlesource.com/c/go/+/199280
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/internal/reflectlite/reflect_mirror_test.go [new file with mode: 0644]