forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.go
117 lines (97 loc) · 3.51 KB
/
mocks.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/cloudfoundry/bosh-cli/release (interfaces: Manager,Extractor)
// Package mocks is a generated GoMock package.
package mocks
import (
release "github.com/cloudfoundry/bosh-cli/release"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockManager is a mock of Manager interface
type MockManager struct {
ctrl *gomock.Controller
recorder *MockManagerMockRecorder
}
// MockManagerMockRecorder is the mock recorder for MockManager
type MockManagerMockRecorder struct {
mock *MockManager
}
// NewMockManager creates a new mock instance
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &MockManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockManager) EXPECT() *MockManagerMockRecorder {
return m.recorder
}
// Add mocks base method
func (m *MockManager) Add(arg0 release.Release) {
m.ctrl.Call(m, "Add", arg0)
}
// Add indicates an expected call of Add
func (mr *MockManagerMockRecorder) Add(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockManager)(nil).Add), arg0)
}
// DeleteAll mocks base method
func (m *MockManager) DeleteAll() error {
ret := m.ctrl.Call(m, "DeleteAll")
ret0, _ := ret[0].(error)
return ret0
}
// DeleteAll indicates an expected call of DeleteAll
func (mr *MockManagerMockRecorder) DeleteAll() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAll", reflect.TypeOf((*MockManager)(nil).DeleteAll))
}
// Find mocks base method
func (m *MockManager) Find(arg0 string) (release.Release, bool) {
ret := m.ctrl.Call(m, "Find", arg0)
ret0, _ := ret[0].(release.Release)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockManagerMockRecorder) Find(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockManager)(nil).Find), arg0)
}
// List mocks base method
func (m *MockManager) List() []release.Release {
ret := m.ctrl.Call(m, "List")
ret0, _ := ret[0].([]release.Release)
return ret0
}
// List indicates an expected call of List
func (mr *MockManagerMockRecorder) List() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockManager)(nil).List))
}
// MockExtractor is a mock of Extractor interface
type MockExtractor struct {
ctrl *gomock.Controller
recorder *MockExtractorMockRecorder
}
// MockExtractorMockRecorder is the mock recorder for MockExtractor
type MockExtractorMockRecorder struct {
mock *MockExtractor
}
// NewMockExtractor creates a new mock instance
func NewMockExtractor(ctrl *gomock.Controller) *MockExtractor {
mock := &MockExtractor{ctrl: ctrl}
mock.recorder = &MockExtractorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockExtractor) EXPECT() *MockExtractorMockRecorder {
return m.recorder
}
// Extract mocks base method
func (m *MockExtractor) Extract(arg0 string) (release.Release, error) {
ret := m.ctrl.Call(m, "Extract", arg0)
ret0, _ := ret[0].(release.Release)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Extract indicates an expected call of Extract
func (mr *MockExtractorMockRecorder) Extract(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Extract", reflect.TypeOf((*MockExtractor)(nil).Extract), arg0)
}