Documentation ¶ Index ¶ func Sequence(prefix string) string type Factory func New[T any](defaults func() T) *Factory[T] func (f *Factory[T]) AfterBuild(fn func(*T)) *Factory[T] func (f *Factory[T]) Build(overrides ...func(*T)) T func (f *Factory[T]) Create(t testing.TB, db *sql.DB, overrides ...func(*T)) T Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Sequence ¶ func Sequence(prefix string) string Types ¶ type Factory ¶ type Factory[T any] struct { // contains filtered or unexported fields } func New ¶ func New[T any](defaults func() T) *Factory[T] func (*Factory[T]) AfterBuild ¶ func (f *Factory[T]) AfterBuild(fn func(*T)) *Factory[T] func (*Factory[T]) Build ¶ func (f *Factory[T]) Build(overrides ...func(*T)) T func (*Factory[T]) Create ¶ func (f *Factory[T]) Create(t testing.TB, db *sql.DB, overrides ...func(*T)) T Source Files ¶ View all Source files factory.go Click to show internal directories. Click to hide internal directories.