diff options
| author | Dave Collins <[email protected]> | 2013-11-14 21:39:21 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-11-14 21:39:21 -0600 |
| commit | de6d1a24a06fb32fa945085463fcc922dfadf152 (patch) | |
| tree | ddf05b0ed5d7284842cda7f54349772191661365 /spew/internal_test.go | |
| parent | f0ba95e184f4063f60a2338ad95a7ee1fc554e62 (diff) | |
Reorganize the new map key sorting functionality.
This commit moves the new code related to sorting reflect.Value items into
common.go since it is accessed by both the formatter and the dumper. It
also adds comments to the new functions and unexports SortValues since it
should be an internal function only.
Diffstat (limited to 'spew/internal_test.go')
| -rw-r--r-- | spew/internal_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spew/internal_test.go b/spew/internal_test.go index 05bab97..d8c9761 100644 --- a/spew/internal_test.go +++ b/spew/internal_test.go @@ -155,3 +155,9 @@ func TestAddedReflectValue(t *testing.T) { t.Errorf("TestAddedReflectValue #%d got: %s want: %s", i, s, want) } } + +// SortValues makes the internal sortValues function available to the test +// package. +func SortValues(values []reflect.Value) { + sortValues(values) +} |
