testing

package
v1.48.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL