github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/client/application/mocks/interface_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: gopkg.in/juju/charmrepo.v3 (interfaces: Interface) 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 charm_v6 "gopkg.in/juju/charm.v6" 12 ) 13 14 // MockInterface is a mock of Interface interface 15 type MockInterface struct { 16 ctrl *gomock.Controller 17 recorder *MockInterfaceMockRecorder 18 } 19 20 // MockInterfaceMockRecorder is the mock recorder for MockInterface 21 type MockInterfaceMockRecorder struct { 22 mock *MockInterface 23 } 24 25 // NewMockInterface creates a new mock instance 26 func NewMockInterface(ctrl *gomock.Controller) *MockInterface { 27 mock := &MockInterface{ctrl: ctrl} 28 mock.recorder = &MockInterfaceMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder { 34 return m.recorder 35 } 36 37 // Get mocks base method 38 func (m *MockInterface) Get(arg0 *charm_v6.URL) (charm_v6.Charm, error) { 39 ret := m.ctrl.Call(m, "Get", arg0) 40 ret0, _ := ret[0].(charm_v6.Charm) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // Get indicates an expected call of Get 46 func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockInterface)(nil).Get), arg0) 48 } 49 50 // GetBundle mocks base method 51 func (m *MockInterface) GetBundle(arg0 *charm_v6.URL) (charm_v6.Bundle, error) { 52 ret := m.ctrl.Call(m, "GetBundle", arg0) 53 ret0, _ := ret[0].(charm_v6.Bundle) 54 ret1, _ := ret[1].(error) 55 return ret0, ret1 56 } 57 58 // GetBundle indicates an expected call of GetBundle 59 func (mr *MockInterfaceMockRecorder) GetBundle(arg0 interface{}) *gomock.Call { 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBundle", reflect.TypeOf((*MockInterface)(nil).GetBundle), arg0) 61 } 62 63 // Resolve mocks base method 64 func (m *MockInterface) Resolve(arg0 *charm_v6.URL) (*charm_v6.URL, []string, error) { 65 ret := m.ctrl.Call(m, "Resolve", arg0) 66 ret0, _ := ret[0].(*charm_v6.URL) 67 ret1, _ := ret[1].([]string) 68 ret2, _ := ret[2].(error) 69 return ret0, ret1, ret2 70 } 71 72 // Resolve indicates an expected call of Resolve 73 func (mr *MockInterfaceMockRecorder) Resolve(arg0 interface{}) *gomock.Call { 74 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resolve", reflect.TypeOf((*MockInterface)(nil).Resolve), arg0) 75 }