summaryrefslogtreecommitdiffstats
path: root/modules/generate/generate_test.go
blob: 538471af49983e98afe35531ee03515b14941a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package generate

import (
	"os"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestMain(m *testing.M) {
	retVal := m.Run()

	os.Exit(retVal)
}

func TestGetRandomString(t *testing.T) {
	randomString, err := GetRandomString(4)
	assert.NoError(t, err)
	assert.Len(t, randomString, 4)
}