summaryrefslogtreecommitdiff
path: root/spew/spew_test.go
diff options
context:
space:
mode:
authorDave Collins <[email protected]>2013-01-20 18:56:59 -0600
committerDave Collins <[email protected]>2013-01-20 18:56:59 -0600
commitcddf8663bd7f61d62278c3fc6d2a2711fa87e115 (patch)
treeef59ab2b447ba58f2afbdd804d78efb9da115e00 /spew/spew_test.go
parentddb71712f6991a9a29c06a6ad1e118fdadb0520d (diff)
Add dump test for max depth option.
Diffstat (limited to 'spew/spew_test.go')
-rw-r--r--spew/spew_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/spew/spew_test.go b/spew/spew_test.go
index 777d0f6..022b50f 100644
--- a/spew/spew_test.go
+++ b/spew/spew_test.go
@@ -152,6 +152,11 @@ func initSpewTests() {
{scsNoPmethods, fCSFprint, "", tps, "test"},
{scsNoPmethods, fCSFprint, "", &tps, "<*>stringer test"},
{scsMaxDepth, fCSFprint, "", dt, "{{<max>} [<max>] [<max>] map[<max>]}"},
+ {scsMaxDepth, fCSFdump, "", dt, "(spew_test.depthTester) {\n" +
+ " ic: (spew_test.indirCir1) {\n <max depth reached>\n },\n" +
+ " arr: ([1]string) {\n <max depth reached>\n },\n" +
+ " slice: ([]string) {\n <max depth reached>\n },\n" +
+ " m: (map[string]int) {\n <max depth reached>\n }\n}\n"},
}
}