Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWithSchema ¶
func CheckWithSchema(t *testing.T, handler func(t *rapid.T, schema *schema.Schema, relationshipGenerator RelationshipGenerator))
CheckWithSchema runs the provided handler with a randomly generated schema.
Types ¶
type RelationshipGenerator ¶
type RelationshipGenerator struct {
// contains filtered or unexported fields
}
RelationshipGenerator is a helper for generating relationships for a schema.
func (*RelationshipGenerator) GenerateRelationships ¶
func (rg *RelationshipGenerator) GenerateRelationships(t *rapid.T) iter.Seq[tuple.Relationship]
GenerateRelationships generates an infinite sequence of relationships for the schema. Relationships are randomly generated but valid according to the schema.
Click to show internal directories.
Click to hide internal directories.