cosmos-sdk/schema/testing/module_schema_test.go

16 lines
275 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())
})
}