diff --git a/internal/backends/memory/tokens_test.go b/internal/backends/memory/tokens_test.go new file mode 100644 index 0000000..d76ed68 --- /dev/null +++ b/internal/backends/memory/tokens_test.go @@ -0,0 +1,12 @@ +package memory + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestTokenGenerator(t *testing.T) { + token := newToken(defaultTokenSize) + assert.Len(t, token, defaultTokenSize*2) +}