()
| 53 | } |
| 54 | |
| 55 | export function createInitialMigrationState(): MigrationStateSnapshot { |
| 56 | const stepFailures = createInitialStepFailures(); |
| 57 | return { |
| 58 | phase: "", |
| 59 | stored: 0, |
| 60 | skipped: 0, |
| 61 | merged: 0, |
| 62 | errors: 0, |
| 63 | processed: 0, |
| 64 | total: 0, |
| 65 | lastItem: null, |
| 66 | done: false, |
| 67 | stopped: false, |
| 68 | stepFailures, |
| 69 | success: computeMigrationSuccess({ errors: 0, stepFailures }), |
| 70 | }; |
| 71 | } |
| 72 | |
| 73 | export function applyMigrationItemToState(state: MigrationStateSnapshot, d: any): void { |
| 74 | if (d.status === "stored") state.stored++; |
no test coverage detected