cosmos-sdk/schema/testing/enum_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

16 lines
264 B
Go

package schematesting
import (
"testing"
"github.com/stretchr/testify/require"
"pgregory.net/rapid"
)
func TestEnumType(t *testing.T) {
rapid.Check(t, func(t *rapid.T) {
enumType := EnumType.Draw(t, "enum")
require.NoError(t, enumType.Validate())
})
}