From 207e9c2674e658a421d4fde34613956dd7dbf463 Mon Sep 17 00:00:00 2001 From: Travis Turner Date: Tue, 5 Jun 2018 12:30:59 -0500 Subject: [PATCH] minor fixes --- frame.go | 2 +- index_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frame.go b/frame.go index a34eabf7f..ac9eb5ee7 100644 --- a/frame.go +++ b/frame.go @@ -1112,7 +1112,7 @@ func (b *bsiGroup) BitDepth() uint { // Note that in this case (because the range uses the full BitDepth 0 to 1023), // we can't simply return 1024. // In order to make this work, we effectively need to change the operator to LTE. -// Executor.executeFieldRangeSlice() takes this into account and returns +// Executor.executeBSIGroupRangeSlice() takes this into account and returns // `frag.FieldNotNull(bsig.BitDepth())` in such instances. func (b *bsiGroup) baseValue(op pql.Token, value int64) (baseValue uint64, outOfRange bool) { if op == pql.GT || op == pql.GTE { diff --git a/index_test.go b/index_test.go index 3a4ee48bc..86d9043ce 100644 --- a/index_test.go +++ b/index_test.go @@ -158,7 +158,7 @@ func TestIndex_CreateFrame(t *testing.T) { } }) - t.Run("ErrInvalidFieldRange", func(t *testing.T) { + t.Run("ErrInvalidBSIGroupRange", func(t *testing.T) { index := test.MustOpenIndex() defer index.Close() @@ -166,7 +166,7 @@ func TestIndex_CreateFrame(t *testing.T) { Fields: []*pilosa.Field{ {Name: "field0", Type: pilosa.FieldTypeInt, Min: 100, Max: 50}, }, - }); err != pilosa.ErrInvalidFieldRange { + }); err != pilosa.ErrInvalidBSIGroupRange { t.Fatal(err) } })