Commit Graph

9 Commits

Author SHA1 Message Date
Dave Collins 92b7ef315a Add additional tests for new sortValues code.
This brings the test coverage back to 100%.
2013-11-14 22:22:17 -06:00
Dave Collins e0d93cdf8b Update imports for previous. 2013-11-14 21:46:27 -06:00
Dave Collins fab1d2b55f Move TestSortValues to common_test.go.
This commit moves the TestSortValues function from dump_test.go to
common_test.go to mirror the new implementation location.  It also
slightly formats the tests to be consistent with the rest of the package.
2013-11-14 21:44:13 -06:00
Dave Collins 17273f26d7 Fix a couple of comment typos. 2013-02-07 18:43:36 -06:00
Dave Collins 52f41f689f Rename pad function to indent.
The name indent better describes the function.  This also will help
differentiate the function from planned functions that are intended to
perform padding for the purposes of aligning fields, types, and values.
2013-02-03 01:35:24 -06:00
Dave Collins f2641d5e6e Add tests for structs with multiple equiv fields.
This commit adds tests for a struct which has an embedded struct pointer
and a field that is a pointer to the same object.  This ensures the cycle
detection is properly reset between fields.
2013-01-20 19:55:55 -06:00
Dave Collins 44d9c97c1a Add tests for disable method options.
This commit adds tests for the DisableMethods and DisablePointerMethods
options.  All combinations of method options and Stringer interface
invocation for both pointer receivers and non-pointer receivers are
tested.
2013-01-20 17:53:55 -06:00
Dave Collins 89496a6569 Add tests for types with custom Error interface. 2013-01-20 13:41:53 -06:00
Dave Collins 57a610269f Abstract common test types and functions. 2013-01-20 13:31:01 -06:00