mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-02-07 02:07:05 +00:00
refactor: yeet util/ subdirs
This commit is contained in:
parent
b6ae95f55b
commit
62578ad5c5
13 changed files with 10 additions and 10 deletions
18
randomid/randomid_test.go
Normal file
18
randomid/randomid_test.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package randomid
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestGenerateRandomID(t *testing.T) {
|
||||
found1, err := Generate()
|
||||
assert.NoError(t, err)
|
||||
found2, err := Generate()
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Len(t, found1, 8)
|
||||
assert.Len(t, found2, 8)
|
||||
assert.NotEqual(t, found1, found2)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue