Skip to content

Commit

Permalink
Renamed Test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Jun 3, 2017
1 parent dbdd18c commit de64675
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions toktok_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
)

func TestCodeGen(t *testing.T) {
func TestTokenGen(t *testing.T) {
length := uint(8)
bucket, err := NewBucket(length)
if err != nil {
Expand All @@ -27,7 +27,7 @@ func TestCodeGen(t *testing.T) {
}
}

func TestCodeCount(t *testing.T) {
func TestTokenCount(t *testing.T) {
bucket, _ := NewBucket(8)
bucket.NewToken(1)

Expand All @@ -36,7 +36,7 @@ func TestCodeCount(t *testing.T) {
}
}

func TestCodeLoad(t *testing.T) {
func TestTokenLoad(t *testing.T) {
code1, code2 := "ABCDEFGH", "IJKLMNOP"
tokens := []string{code1, code2}
bucket, _ := NewBucket(8)
Expand All @@ -51,7 +51,7 @@ func TestCodeLoad(t *testing.T) {
}
}

func TestCodeError(t *testing.T) {
func TestTokenError(t *testing.T) {
_, err := NewBucket(1)
if err != ErrTokenLengthTooSmall {
t.Errorf("Expected error %v, got %v", ErrTokenLengthTooSmall, err)
Expand All @@ -69,7 +69,7 @@ func TestCodeError(t *testing.T) {
}
}

func TestCodeResolve(t *testing.T) {
func TestTokenResolve(t *testing.T) {
bucket, _ := NewBucket(8)

var tok string
Expand All @@ -92,7 +92,7 @@ func TestCodeResolve(t *testing.T) {
}
}

func TestCodeFaultyResolve(t *testing.T) {
func TestTokenFaultyResolve(t *testing.T) {
bucket, _ := NewBucket(8)

var tok, ttok string
Expand Down

0 comments on commit de64675

Please sign in to comment.