✨ Add UUID generator
This commit is contained in:
parent
bd8f9ae8a6
commit
0fc4369679
6 changed files with 68 additions and 5 deletions
|
|
@ -3,14 +3,16 @@ package nomino
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestDefaultConf(t *testing.T) {
|
||||
c := defaultConf()
|
||||
assert.Equal(t, ".txt", c.extension)
|
||||
// assert.Nil(t, c.generator)
|
||||
assert.Equal(t, "abc", c.generator())
|
||||
st, _ := c.generator()
|
||||
_, parseErr := uuid.Parse(st)
|
||||
assert.NoError(t, parseErr)
|
||||
}
|
||||
|
||||
func TestWithOriginal(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue