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

19 lines
362 B
Go

package schematesting
import (
"testing"
"github.com/stretchr/testify/require"
"pgregory.net/rapid"
)
func TestAppSchema(t *testing.T) {
rapid.Check(t, func(t *rapid.T) {
schema := AppSchemaGen.Draw(t, "schema")
for moduleName, moduleSchema := range schema {
require.NotEmpty(t, moduleName)
require.NoError(t, moduleSchema.Validate())
}
})
}