github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/worker/caasunitsmanager/mocks/hub_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/worker/caasunitsmanager (interfaces: Hub) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/hub_mock.go github.com/juju/juju/worker/caasunitsmanager Hub 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockHub is a mock of Hub interface. 19 type MockHub struct { 20 ctrl *gomock.Controller 21 recorder *MockHubMockRecorder 22 } 23 24 // MockHubMockRecorder is the mock recorder for MockHub. 25 type MockHubMockRecorder struct { 26 mock *MockHub 27 } 28 29 // NewMockHub creates a new mock instance. 30 func NewMockHub(ctrl *gomock.Controller) *MockHub { 31 mock := &MockHub{ctrl: ctrl} 32 mock.recorder = &MockHubMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockHub) EXPECT() *MockHubMockRecorder { 38 return m.recorder 39 } 40 41 // Publish mocks base method. 42 func (m *MockHub) Publish(arg0 string, arg1 any) func() { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Publish", arg0, arg1) 45 ret0, _ := ret[0].(func()) 46 return ret0 47 } 48 49 // Publish indicates an expected call of Publish. 50 func (mr *MockHubMockRecorder) Publish(arg0, arg1 any) *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockHub)(nil).Publish), arg0, arg1) 53 } 54 55 // Subscribe mocks base method. 56 func (m *MockHub) Subscribe(arg0 string, arg1 func(string, any)) func() { 57 m.ctrl.T.Helper() 58 ret := m.ctrl.Call(m, "Subscribe", arg0, arg1) 59 ret0, _ := ret[0].(func()) 60 return ret0 61 } 62 63 // Subscribe indicates an expected call of Subscribe. 64 func (mr *MockHubMockRecorder) Subscribe(arg0, arg1 any) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockHub)(nil).Subscribe), arg0, arg1) 67 }