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:
@@ -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{}),
|
||||
|
||||
Reference in New Issue
Block a user