1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-05-16 15:28:53 +00:00

17 lines
288 B
Go
Raw Normal View History

package util
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestGenerateRandomStringDNSSafe(t *testing.T) {
for range 100000 {
str, err := GenerateRandomStringDNSSafe(8)
require.NoError(t, err)
assert.Len(t, str, 8)
}
}