Add dump test for max depth option.
This commit is contained in:
parent
ddb71712f6
commit
cddf8663bd
|
@ -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"},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue