From e1c622c4cfd1bf2e27448a0f0940407d35022343 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 11 Oct 2014 13:30:08 -0500 Subject: [PATCH] Modify the time sorter tests to make golint happy. This commit changes the internal testing mechanism from returning the unexported timeSorter type directly to insted returning sort.Interface. This has been done because the latest version of golint complains about return unexported types. --- internal_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal_test.go b/internal_test.go index d18369cf..a7bd88c2 100644 --- a/internal_test.go +++ b/internal_test.go @@ -12,6 +12,7 @@ interface. The functions are only exported while the tests are being run. package btcchain import ( + "sort" "time" "github.com/conformal/btcutil" @@ -25,7 +26,7 @@ func TstSetCoinbaseMaturity(maturity int64) { // TstTimeSorter makes the internal timeSorter type available to the test // package. -func TstTimeSorter(times []time.Time) timeSorter { +func TstTimeSorter(times []time.Time) sort.Interface { return timeSorter(times) }