Skip to content

Commit

Permalink
Move minUint64Value and maxUint64Value constants to encoding test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhellberg committed Sep 11, 2023
1 parent c708c2a commit 3001212
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions encoding_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
package sqids

import (
"math"
"reflect"
"testing"
)

const (
minUint64Value = uint64(0)
maxUint64Value = uint64(math.MaxUint64)
)

func BenchmarkEncodeDecode(b *testing.B) {
numbers := []uint64{1, 2, 3, 4, 5}

Expand Down
3 changes: 0 additions & 3 deletions sqids.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ package sqids

import (
"errors"
"math"
"strings"
)

const (
defaultAlphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
minAlphabetLength = 3
minUint64Value = uint64(0)
maxUint64Value = uint64(math.MaxUint64)
)

var defaultBlocklist []string = newDefaultBlocklist()
Expand Down

0 comments on commit 3001212

Please sign in to comment.