...
1
2
3
4
5 package image
6
7 import (
8 reflect "reflect"
9
10 v1alpha2 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
11 gomock "github.com/golang/mock/gomock"
12 filesystem "github.com/redhat-developer/odo/pkg/testingutil/filesystem"
13 )
14
15
16 type MockBackend struct {
17 ctrl *gomock.Controller
18 recorder *MockBackendMockRecorder
19 }
20
21
22 type MockBackendMockRecorder struct {
23 mock *MockBackend
24 }
25
26
27 func NewMockBackend(ctrl *gomock.Controller) *MockBackend {
28 mock := &MockBackend{ctrl: ctrl}
29 mock.recorder = &MockBackendMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockBackend) EXPECT() *MockBackendMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockBackend) Build(fs filesystem.Filesystem, image *v1alpha2.ImageComponent, devfilePath string) error {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "Build", fs, image, devfilePath)
42 ret0, _ := ret[0].(error)
43 return ret0
44 }
45
46
47 func (mr *MockBackendMockRecorder) Build(fs, image, devfilePath interface{}) *gomock.Call {
48 mr.mock.ctrl.T.Helper()
49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Build", reflect.TypeOf((*MockBackend)(nil).Build), fs, image, devfilePath)
50 }
51
52
53 func (m *MockBackend) Push(image string) error {
54 m.ctrl.T.Helper()
55 ret := m.ctrl.Call(m, "Push", image)
56 ret0, _ := ret[0].(error)
57 return ret0
58 }
59
60
61 func (mr *MockBackendMockRecorder) Push(image interface{}) *gomock.Call {
62 mr.mock.ctrl.T.Helper()
63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Push", reflect.TypeOf((*MockBackend)(nil).Push), image)
64 }
65
66
67 func (m *MockBackend) String() string {
68 m.ctrl.T.Helper()
69 ret := m.ctrl.Call(m, "String")
70 ret0, _ := ret[0].(string)
71 return ret0
72 }
73
74
75 func (mr *MockBackendMockRecorder) String() *gomock.Call {
76 mr.mock.ctrl.T.Helper()
77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockBackend)(nil).String))
78 }
79
View as plain text