cosmos-sdk/schema/testing/name_test.go
Aaron Craelius e7844e640c
feat(schema): testing utilities (#20705)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-31 06:58:30 +00:00

18 lines
282 B
Go

package schematesting
import (
"testing"
"github.com/stretchr/testify/require"
"pgregory.net/rapid"
"cosmossdk.io/schema"
)
func TestName(t *testing.T) {
rapid.Check(t, func(t *rapid.T) {
name := NameGen.Draw(t, "name")
require.True(t, schema.ValidateName(name))
})
}