github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/common/mocks/leadership.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/apiserver/common (interfaces: LeadershipPinningBackend,LeadershipMachine) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 common "github.com/juju/juju/apiserver/common" 12 ) 13 14 // MockLeadershipPinningBackend is a mock of LeadershipPinningBackend interface 15 type MockLeadershipPinningBackend struct { 16 ctrl *gomock.Controller 17 recorder *MockLeadershipPinningBackendMockRecorder 18 } 19 20 // MockLeadershipPinningBackendMockRecorder is the mock recorder for MockLeadershipPinningBackend 21 type MockLeadershipPinningBackendMockRecorder struct { 22 mock *MockLeadershipPinningBackend 23 } 24 25 // NewMockLeadershipPinningBackend creates a new mock instance 26 func NewMockLeadershipPinningBackend(ctrl *gomock.Controller) *MockLeadershipPinningBackend { 27 mock := &MockLeadershipPinningBackend{ctrl: ctrl} 28 mock.recorder = &MockLeadershipPinningBackendMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockLeadershipPinningBackend) EXPECT() *MockLeadershipPinningBackendMockRecorder { 34 return m.recorder 35 } 36 37 // Machine mocks base method 38 func (m *MockLeadershipPinningBackend) Machine(arg0 string) (common.LeadershipMachine, error) { 39 ret := m.ctrl.Call(m, "Machine", arg0) 40 ret0, _ := ret[0].(common.LeadershipMachine) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // Machine indicates an expected call of Machine 46 func (mr *MockLeadershipPinningBackendMockRecorder) Machine(arg0 interface{}) *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Machine", reflect.TypeOf((*MockLeadershipPinningBackend)(nil).Machine), arg0) 48 } 49 50 // MockLeadershipMachine is a mock of LeadershipMachine interface 51 type MockLeadershipMachine struct { 52 ctrl *gomock.Controller 53 recorder *MockLeadershipMachineMockRecorder 54 } 55 56 // MockLeadershipMachineMockRecorder is the mock recorder for MockLeadershipMachine 57 type MockLeadershipMachineMockRecorder struct { 58 mock *MockLeadershipMachine 59 } 60 61 // NewMockLeadershipMachine creates a new mock instance 62 func NewMockLeadershipMachine(ctrl *gomock.Controller) *MockLeadershipMachine { 63 mock := &MockLeadershipMachine{ctrl: ctrl} 64 mock.recorder = &MockLeadershipMachineMockRecorder{mock} 65 return mock 66 } 67 68 // EXPECT returns an object that allows the caller to indicate expected use 69 func (m *MockLeadershipMachine) EXPECT() *MockLeadershipMachineMockRecorder { 70 return m.recorder 71 } 72 73 // ApplicationNames mocks base method 74 func (m *MockLeadershipMachine) ApplicationNames() ([]string, error) { 75 ret := m.ctrl.Call(m, "ApplicationNames") 76 ret0, _ := ret[0].([]string) 77 ret1, _ := ret[1].(error) 78 return ret0, ret1 79 } 80 81 // ApplicationNames indicates an expected call of ApplicationNames 82 func (mr *MockLeadershipMachineMockRecorder) ApplicationNames() *gomock.Call { 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationNames", reflect.TypeOf((*MockLeadershipMachine)(nil).ApplicationNames)) 84 }