diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-02 11:04:00 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-02 11:04:00 -0500 |
| commit | a37df93853def914dbda165cdcf09ae8e0305ec3 (patch) | |
| tree | 41fb3a459db99d1f0ec2ed2e00d4ca580a5d0c46 /internal/bolttest | |
| parent | improve wording (diff) | |
| download | cli-a37df93853def914dbda165cdcf09ae8e0305ec3.zip | |
Remove Latest() from migration fs repo in favor of using List on service
Diffstat (limited to 'internal/bolttest')
| -rw-r--r-- | internal/bolttest/mock_migration_fs_repo.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/bolttest/mock_migration_fs_repo.go b/internal/bolttest/mock_migration_fs_repo.go index ae933e3..d392732 100644 --- a/internal/bolttest/mock_migration_fs_repo.go +++ b/internal/bolttest/mock_migration_fs_repo.go @@ -7,8 +7,6 @@ type MockMigrationFsRepo struct { CreateCallCount int ListReturnValue ListReturnValue ListCallCount int - LatestReturnValue LatestReturnValue - LatestCallCount int ReadUpgradeScriptReturnValue ReadUpgradeScriptReturnValue ReadUpgradeScriptCallCount int ReadDowngradeScriptReturnValue ReadDowngradeScriptReturnValue @@ -19,11 +17,6 @@ type CreateReturnValue struct { Err error } -type LatestReturnValue struct { - Migration *models.Migration - Err error -} - type ReadUpgradeScriptReturnValue struct { ScriptContents string Err error @@ -41,11 +34,6 @@ func (repo *MockMigrationFsRepo) List() (map[string]*models.Migration, error) { return repo.ListReturnValue.Migrations, repo.ListReturnValue.Err } -func (repo *MockMigrationFsRepo) Latest() (*models.Migration, error) { - repo.LatestCallCount += 1 - return repo.LatestReturnValue.Migration, repo.LatestReturnValue.Err -} - func (repo *MockMigrationFsRepo) ReadUpgradeScript( migration *models.Migration, ) (string, error) { |