refactor(pipeline): ввести Runner интерфейс

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-08-09 00:32:07 +03:00
parent 328f517543
commit 9c6fc8cffa
3 changed files with 20 additions and 17 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ func TestBackupCmd_Success(t *testing.T) {
testData := []byte("test backup payload")
dumper := &successDumper{data: testData}
newRunner = func(...pipeline.Option) pipelineRunner {
newRunner = func(...pipeline.Option) pipeline.Runner {
return pipeline.NewRunner(
pipeline.WithDumper(dumper),
pipeline.WithEncryptor(&passthroughEncryptor{}),
@@ -320,7 +320,7 @@ func TestBackupCmd_PgDumpFailure(t *testing.T) {
return mockKM
}
newRunner = func(...pipeline.Option) pipelineRunner {
newRunner = func(...pipeline.Option) pipeline.Runner {
return pipeline.NewRunner(
pipeline.WithDumper(&failDumper{}),
pipeline.WithEncryptor(&passthroughEncryptor{}),