diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-13 21:43:11 -0800 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-13 21:43:11 -0800 |
| commit | 28dd0bfc1373746b8c056a211f068da71fdc80b2 (patch) | |
| tree | 9c04a08501bc5abe7413263f60eaa55400dd162f /internal/bolttest/mock_migration_executor.go | |
| parent | Release v0.13.1 (diff) | |
| download | cli-28dd0bfc1373746b8c056a211f068da71fdc80b2.zip | |
Remove migration dependencies
Diffstat (limited to 'internal/bolttest/mock_migration_executor.go')
| -rw-r--r-- | internal/bolttest/mock_migration_executor.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/bolttest/mock_migration_executor.go b/internal/bolttest/mock_migration_executor.go deleted file mode 100644 index 74eda4f..0000000 --- a/internal/bolttest/mock_migration_executor.go +++ /dev/null @@ -1,26 +0,0 @@ -package bolttest - -import "git.sr.ht/~eugenetriguba/bolt/internal/models" - -type MockMigrationExecutor struct { - ApplyReturnValue ExecutorApplyReturnValue - ApplyCallCount int - RevertReturnValue ExecutorRevertReturnValue - RevertCallCount int -} - -type ExecutorApplyReturnValue struct { - Err error -} - -type ExecutorRevertReturnValue = ExecutorApplyReturnValue - -func (e *MockMigrationExecutor) Apply(migration *models.Migration) error { - e.ApplyCallCount++ - return e.ApplyReturnValue.Err -} - -func (e *MockMigrationExecutor) Revert(migration *models.Migration) error { - e.RevertCallCount++ - return e.RevertReturnValue.Err -} |