
Blender and FFmpeg were run in the same way, using copy-pasted code. This is now abstracted away into the CLI runner, which in turn is moved into its own subpackage. No functional changes.
72 lines
2.6 KiB
Go
72 lines
2.6 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: git.blender.org/flamenco/internal/worker (interfaces: CommandLineRunner)
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
exec "os/exec"
|
|
reflect "reflect"
|
|
|
|
cli_runner "git.blender.org/flamenco/internal/worker/cli_runner"
|
|
gomock "github.com/golang/mock/gomock"
|
|
zerolog "github.com/rs/zerolog"
|
|
)
|
|
|
|
// MockCommandLineRunner is a mock of CommandLineRunner interface.
|
|
type MockCommandLineRunner struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockCommandLineRunnerMockRecorder
|
|
}
|
|
|
|
// MockCommandLineRunnerMockRecorder is the mock recorder for MockCommandLineRunner.
|
|
type MockCommandLineRunnerMockRecorder struct {
|
|
mock *MockCommandLineRunner
|
|
}
|
|
|
|
// NewMockCommandLineRunner creates a new mock instance.
|
|
func NewMockCommandLineRunner(ctrl *gomock.Controller) *MockCommandLineRunner {
|
|
mock := &MockCommandLineRunner{ctrl: ctrl}
|
|
mock.recorder = &MockCommandLineRunnerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockCommandLineRunner) EXPECT() *MockCommandLineRunnerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// CommandContext mocks base method.
|
|
func (m *MockCommandLineRunner) CommandContext(arg0 context.Context, arg1 string, arg2 ...string) *exec.Cmd {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "CommandContext", varargs...)
|
|
ret0, _ := ret[0].(*exec.Cmd)
|
|
return ret0
|
|
}
|
|
|
|
// CommandContext indicates an expected call of CommandContext.
|
|
func (mr *MockCommandLineRunnerMockRecorder) CommandContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommandContext", reflect.TypeOf((*MockCommandLineRunner)(nil).CommandContext), varargs...)
|
|
}
|
|
|
|
// RunWithTextOutput mocks base method.
|
|
func (m *MockCommandLineRunner) RunWithTextOutput(arg0 context.Context, arg1 zerolog.Logger, arg2 *exec.Cmd, arg3 cli_runner.LogChunker, arg4 chan<- string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RunWithTextOutput", arg0, arg1, arg2, arg3, arg4)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RunWithTextOutput indicates an expected call of RunWithTextOutput.
|
|
func (mr *MockCommandLineRunnerMockRecorder) RunWithTextOutput(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunWithTextOutput", reflect.TypeOf((*MockCommandLineRunner)(nil).RunWithTextOutput), arg0, arg1, arg2, arg3, arg4)
|
|
}
|