Documentation ¶
Overview ¶
Package testfactory provides low level helpers for inserting records directly into the database.
Index ¶
- func Job(ctx context.Context, t *testing.T, exec riverdriver.Executor, opts *JobOpts) *rivertype.JobRow
- func Leader(ctx context.Context, t *testing.T, exec riverdriver.Executor, opts *LeaderOpts) *riverdriver.Leader
- func Migration(ctx context.Context, t *testing.T, exec riverdriver.Executor, ...) *riverdriver.Migration
- type JobOpts
- type LeaderOpts
- type MigrationOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Leader ¶
func Leader(ctx context.Context, t *testing.T, exec riverdriver.Executor, opts *LeaderOpts) *riverdriver.Leader
func Migration ¶
func Migration(ctx context.Context, t *testing.T, exec riverdriver.Executor, opts *MigrationOpts) *riverdriver.Migration
Types ¶
type LeaderOpts ¶
type MigrationOpts ¶
type MigrationOpts struct {
Version *int
}
Click to show internal directories.
Click to hide internal directories.