aboutsummaryrefslogtreecommitdiffstats
path: root/internal/bolttest
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-03-02 11:04:00 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-03-02 11:04:00 -0500
commita37df93853def914dbda165cdcf09ae8e0305ec3 (patch)
tree41fb3a459db99d1f0ec2ed2e00d4ca580a5d0c46 /internal/bolttest
parentimprove wording (diff)
downloadcli-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.go12
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) {