feat(schema): testing utilities (#20705)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot]
parent
6eea0ae6d2
commit
e7844e640c
@@ -0,0 +1,15 @@
|
||||
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())
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user