github.com/uber/kraken@v0.1.4/mocks/tracker/announceclient/client.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/uber/kraken/tracker/announceclient (interfaces: Client) 3 4 // Package mockannounceclient is a generated GoMock package. 5 package mockannounceclient 6 7 import ( 8 gomock "github.com/golang/mock/gomock" 9 core "github.com/uber/kraken/core" 10 reflect "reflect" 11 time "time" 12 ) 13 14 // MockClient is a mock of Client interface 15 type MockClient struct { 16 ctrl *gomock.Controller 17 recorder *MockClientMockRecorder 18 } 19 20 // MockClientMockRecorder is the mock recorder for MockClient 21 type MockClientMockRecorder struct { 22 mock *MockClient 23 } 24 25 // NewMockClient creates a new mock instance 26 func NewMockClient(ctrl *gomock.Controller) *MockClient { 27 mock := &MockClient{ctrl: ctrl} 28 mock.recorder = &MockClientMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockClient) EXPECT() *MockClientMockRecorder { 34 return m.recorder 35 } 36 37 // Announce mocks base method 38 func (m *MockClient) Announce(arg0 core.Digest, arg1 core.InfoHash, arg2 bool, arg3 int) ([]*core.PeerInfo, time.Duration, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "Announce", arg0, arg1, arg2, arg3) 41 ret0, _ := ret[0].([]*core.PeerInfo) 42 ret1, _ := ret[1].(time.Duration) 43 ret2, _ := ret[2].(error) 44 return ret0, ret1, ret2 45 } 46 47 // Announce indicates an expected call of Announce 48 func (mr *MockClientMockRecorder) Announce(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Announce", reflect.TypeOf((*MockClient)(nil).Announce), arg0, arg1, arg2, arg3) 51 }