github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/agent/meterstatus/mocks/meterstatus_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/apiserver/facades/agent/meterstatus (interfaces: MeterStatusState) 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 state "github.com/juju/juju/state" 12 ) 13 14 // MockMeterStatusState is a mock of MeterStatusState interface 15 type MockMeterStatusState struct { 16 ctrl *gomock.Controller 17 recorder *MockMeterStatusStateMockRecorder 18 } 19 20 // MockMeterStatusStateMockRecorder is the mock recorder for MockMeterStatusState 21 type MockMeterStatusStateMockRecorder struct { 22 mock *MockMeterStatusState 23 } 24 25 // NewMockMeterStatusState creates a new mock instance 26 func NewMockMeterStatusState(ctrl *gomock.Controller) *MockMeterStatusState { 27 mock := &MockMeterStatusState{ctrl: ctrl} 28 mock.recorder = &MockMeterStatusStateMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockMeterStatusState) EXPECT() *MockMeterStatusStateMockRecorder { 34 return m.recorder 35 } 36 37 // Application mocks base method 38 func (m *MockMeterStatusState) Application(arg0 string) (*state.Application, error) { 39 ret := m.ctrl.Call(m, "Application", arg0) 40 ret0, _ := ret[0].(*state.Application) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // Application indicates an expected call of Application 46 func (mr *MockMeterStatusStateMockRecorder) Application(arg0 interface{}) *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Application", reflect.TypeOf((*MockMeterStatusState)(nil).Application), arg0) 48 } 49 50 // Unit mocks base method 51 func (m *MockMeterStatusState) Unit(arg0 string) (*state.Unit, error) { 52 ret := m.ctrl.Call(m, "Unit", arg0) 53 ret0, _ := ret[0].(*state.Unit) 54 ret1, _ := ret[1].(error) 55 return ret0, ret1 56 } 57 58 // Unit indicates an expected call of Unit 59 func (mr *MockMeterStatusStateMockRecorder) Unit(arg0 interface{}) *gomock.Call { 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unit", reflect.TypeOf((*MockMeterStatusState)(nil).Unit), arg0) 61 }