forked from cloudfoundry-attic/bosh-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.go
101 lines (81 loc) · 2.55 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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/cloudfoundry/bosh-init/release (interfaces: Manager,Extractor)
package mocks
import (
gomock "github.com/cloudfoundry/bosh-init/internal/github.com/golang/mock/gomock"
release "github.com/cloudfoundry/bosh-init/release"
)
// Mock of Manager interface
type MockManager struct {
ctrl *gomock.Controller
recorder *_MockManagerRecorder
}
// Recorder for MockManager (not exported)
type _MockManagerRecorder struct {
mock *MockManager
}
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &_MockManagerRecorder{mock}
return mock
}
func (_m *MockManager) EXPECT() *_MockManagerRecorder {
return _m.recorder
}
func (_m *MockManager) Add(_param0 release.Release) {
_m.ctrl.Call(_m, "Add", _param0)
}
func (_mr *_MockManagerRecorder) Add(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Add", arg0)
}
func (_m *MockManager) DeleteAll() error {
ret := _m.ctrl.Call(_m, "DeleteAll")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockManagerRecorder) DeleteAll() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteAll")
}
func (_m *MockManager) Find(_param0 string) (release.Release, bool) {
ret := _m.ctrl.Call(_m, "Find", _param0)
ret0, _ := ret[0].(release.Release)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
func (_mr *_MockManagerRecorder) Find(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Find", arg0)
}
func (_m *MockManager) List() []release.Release {
ret := _m.ctrl.Call(_m, "List")
ret0, _ := ret[0].([]release.Release)
return ret0
}
func (_mr *_MockManagerRecorder) List() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "List")
}
// Mock of Extractor interface
type MockExtractor struct {
ctrl *gomock.Controller
recorder *_MockExtractorRecorder
}
// Recorder for MockExtractor (not exported)
type _MockExtractorRecorder struct {
mock *MockExtractor
}
func NewMockExtractor(ctrl *gomock.Controller) *MockExtractor {
mock := &MockExtractor{ctrl: ctrl}
mock.recorder = &_MockExtractorRecorder{mock}
return mock
}
func (_m *MockExtractor) EXPECT() *_MockExtractorRecorder {
return _m.recorder
}
func (_m *MockExtractor) Extract(_param0 string) (release.Release, error) {
ret := _m.ctrl.Call(_m, "Extract", _param0)
ret0, _ := ret[0].(release.Release)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockExtractorRecorder) Extract(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Extract", arg0)
}