diff options
| author | Dave Collins <[email protected]> | 2013-01-20 13:31:01 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-01-20 13:31:01 -0600 |
| commit | 57a610269f12551528d76bd46c84dbbb308cc49c (patch) | |
| tree | 5014829f48cb2c77fe417b5cad5e29ea25c39a11 /spew/dump_test.go | |
| parent | ad1d81b355a1890f4cd7476b1d1e2e1f52541dd5 (diff) | |
Abstract common test types and functions.
Diffstat (limited to 'spew/dump_test.go')
| -rw-r--r-- | spew/dump_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/spew/dump_test.go b/spew/dump_test.go index 1310906..f4de975 100644 --- a/spew/dump_test.go +++ b/spew/dump_test.go @@ -63,36 +63,6 @@ import ( "unsafe" ) -// custom type to test Stinger interface on pointer receiver. -type pstringer string - -// String implements the Stringer interface for testing invocation of custom -// stringers on types with only pointer receivers. -func (s *pstringer) String() string { - return "stringer " + string(*s) -} - -// xref1 and xref2 are cross referencing structs for testing circular reference -// detection. -type xref1 struct { - ps2 *xref2 -} -type xref2 struct { - ps1 *xref1 -} - -// indirCir1, indirCir2, and indirCir3 are used to generate an indirect circular -// reference for testing detection. -type indirCir1 struct { - ps2 *indirCir2 -} -type indirCir2 struct { - ps3 *indirCir3 -} -type indirCir3 struct { - ps1 *indirCir1 -} - // dumpTest is used to describe a test to be perfomed against the Dump method. type dumpTest struct { in interface{} |
