This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
executor.go
52 lines (44 loc) · 1.56 KB
/
executor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Code generated by MockGen. DO NOT EDIT.
// Source: application/service/executor/executor.go
// Package mock_executor is a generated GoMock package.
package mock_executor
import (
context "context"
job "github.com/duck8823/duci/domain/model/job"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockExecutor is a mock of Executor interface
type MockExecutor struct {
ctrl *gomock.Controller
recorder *MockExecutorMockRecorder
}
// MockExecutorMockRecorder is the mock recorder for MockExecutor
type MockExecutorMockRecorder struct {
mock *MockExecutor
}
// NewMockExecutor creates a new mock instance
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor {
mock := &MockExecutor{ctrl: ctrl}
mock.recorder = &MockExecutorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder {
return m.recorder
}
// Execute mocks base method
func (m *MockExecutor) Execute(ctx context.Context, target job.Target, cmd ...string) error {
varargs := []interface{}{ctx, target}
for _, a := range cmd {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Execute", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// Execute indicates an expected call of Execute
func (mr *MockExecutorMockRecorder) Execute(ctx, target interface{}, cmd ...interface{}) *gomock.Call {
varargs := append([]interface{}{ctx, target}, cmd...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockExecutor)(nil).Execute), varargs...)
}