github.com/m3db/m3@v1.5.0/src/msg/producer/writer/context_dialer_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/msg/producer/writer/consumer_writer_test.go 3 4 // Copyright (c) 2022 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package writer is a generated GoMock package. 25 package writer 26 27 import ( 28 "context" 29 "net" 30 "reflect" 31 32 "github.com/golang/mock/gomock" 33 ) 34 35 // MockcontextDialer is a mock of contextDialer interface. 36 type MockcontextDialer struct { 37 ctrl *gomock.Controller 38 recorder *MockcontextDialerMockRecorder 39 } 40 41 // MockcontextDialerMockRecorder is the mock recorder for MockcontextDialer. 42 type MockcontextDialerMockRecorder struct { 43 mock *MockcontextDialer 44 } 45 46 // NewMockcontextDialer creates a new mock instance. 47 func NewMockcontextDialer(ctrl *gomock.Controller) *MockcontextDialer { 48 mock := &MockcontextDialer{ctrl: ctrl} 49 mock.recorder = &MockcontextDialerMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockcontextDialer) EXPECT() *MockcontextDialerMockRecorder { 55 return m.recorder 56 } 57 58 // DialContext mocks base method. 59 func (m *MockcontextDialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error) { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "DialContext", ctx, network, addr) 62 ret0, _ := ret[0].(net.Conn) 63 ret1, _ := ret[1].(error) 64 return ret0, ret1 65 } 66 67 // DialContext indicates an expected call of DialContext. 68 func (mr *MockcontextDialerMockRecorder) DialContext(ctx, network, addr interface{}) *gomock.Call { 69 mr.mock.ctrl.T.Helper() 70 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialContext", reflect.TypeOf((*MockcontextDialer)(nil).DialContext), ctx, network, addr) 71 }