cosmos-sdk/schema/testing/module_schema_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
273 B
Go

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