(t *testing.T)
| 341 | } |
| 342 | |
| 343 | func TestMigratorGetProgressPercent(t *testing.T) { |
| 344 | migrationContext := base.NewMigrationContext() |
| 345 | migrator := NewMigrator(migrationContext, "1.2.3") |
| 346 | |
| 347 | { |
| 348 | require.Equal(t, float64(100.0), migrator.getProgressPercent(0)) |
| 349 | } |
| 350 | { |
| 351 | migrationContext.TotalRowsCopied = 250 |
| 352 | require.Equal(t, float64(25.0), migrator.getProgressPercent(1000)) |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | func TestMigratorGetMigrationStateAndETA(t *testing.T) { |
| 357 | migrationContext := base.NewMigrationContext() |
nothing calls this directly
no test coverage detected
searching dependent graphs…