mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-06 17:27:20 +08:00
16 lines
211 B
Go
16 lines
211 B
Go
package session
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNewID(t *testing.T) {
|
|
for n := 0; n < 5; n++ {
|
|
id := NewID()
|
|
t.Logf("id: %s", id)
|
|
assert.Equal(t, 48, len(id))
|
|
}
|
|
}
|