From c004ffba3e91190d194ab32a3c2a57f01155509f Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 22:04:37 -0500 Subject: [PATCH] Unexport test.NewIndex --- test/index.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.go b/test/index.go index 9b7c1684b..ae2b997a9 100644 --- a/test/index.go +++ b/test/index.go @@ -26,8 +26,8 @@ type Index struct { *pilosa.Index } -// NewIndex returns a new instance of Index. -func NewIndex() *Index { +// newIndex returns a new instance of Index. +func newIndex() *Index { path, err := ioutil.TempDir("", "pilosa-index-") if err != nil { panic(err) @@ -41,7 +41,7 @@ func NewIndex() *Index { // MustOpenIndex returns a new, opened index at a temporary path. Panic on error. func MustOpenIndex() *Index { - index := NewIndex() + index := newIndex() if err := index.Open(); err != nil { panic(err) }