summaryrefslogtreecommitdiff
path: root/spew/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'spew/common_test.go')
-rw-r--r--spew/common_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/spew/common_test.go b/spew/common_test.go
index 4b786e6..0f1715d 100644
--- a/spew/common_test.go
+++ b/spew/common_test.go
@@ -59,6 +59,17 @@ type indirCir3 struct {
ps1 *indirCir1
}
+// embed is used to test embedded structures.
+type embed struct {
+ a string
+}
+
+// embedwrap is used to test embedded structures.
+type embedwrap struct {
+ *embed
+ e *embed
+}
+
// panicer is used to intentionally cause a panic for testing spew properly
// handles them
type panicer int