(ctx context.Context, tb testing.TB, exec riverdriver.Executor, opts *MigrationOpts)
| 137 | } |
| 138 | |
| 139 | func Migration(ctx context.Context, tb testing.TB, exec riverdriver.Executor, opts *MigrationOpts) *riverdriver.Migration { |
| 140 | tb.Helper() |
| 141 | |
| 142 | migration, err := exec.MigrationInsertMany(ctx, &riverdriver.MigrationInsertManyParams{ |
| 143 | Line: ptrutil.ValOrDefault(opts.Line, riverdriver.MigrationLineMain), |
| 144 | Schema: opts.Schema, |
| 145 | Versions: []int{ptrutil.ValOrDefaultFunc(opts.Version, nextSeq)}, |
| 146 | }) |
| 147 | require.NoError(tb, err) |
| 148 | return migration[0] |
| 149 | } |
| 150 | |
| 151 | var seq int64 = 1 //nolint:gochecknoglobals |
| 152 |
no test coverage detected
searching dependent graphs…