github.com/aergoio/aergo@v1.3.1/p2p/p2pmock/mock_io.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: io (interfaces: Reader,ReadCloser,Writer,WriteCloser,ReadWriteCloser)
     3  
     4  // Package mock_io is a generated GoMock package.
     5  package p2pmock
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	reflect "reflect"
    10  )
    11  
    12  // MockReader is a mock of Reader interface
    13  type MockReader struct {
    14  	ctrl     *gomock.Controller
    15  	recorder *MockReaderMockRecorder
    16  }
    17  
    18  // MockReaderMockRecorder is the mock recorder for MockReader
    19  type MockReaderMockRecorder struct {
    20  	mock *MockReader
    21  }
    22  
    23  // NewMockReader creates a new mock instance
    24  func NewMockReader(ctrl *gomock.Controller) *MockReader {
    25  	mock := &MockReader{ctrl: ctrl}
    26  	mock.recorder = &MockReaderMockRecorder{mock}
    27  	return mock
    28  }
    29  
    30  // EXPECT returns an object that allows the caller to indicate expected use
    31  func (m *MockReader) EXPECT() *MockReaderMockRecorder {
    32  	return m.recorder
    33  }
    34  
    35  // Read mocks base method
    36  func (m *MockReader) Read(arg0 []byte) (int, error) {
    37  	m.ctrl.T.Helper()
    38  	ret := m.ctrl.Call(m, "Read", arg0)
    39  	ret0, _ := ret[0].(int)
    40  	ret1, _ := ret[1].(error)
    41  	return ret0, ret1
    42  }
    43  
    44  // Read indicates an expected call of Read
    45  func (mr *MockReaderMockRecorder) Read(arg0 interface{}) *gomock.Call {
    46  	mr.mock.ctrl.T.Helper()
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockReader)(nil).Read), arg0)
    48  }
    49  
    50  // MockReadCloser is a mock of ReadCloser interface
    51  type MockReadCloser struct {
    52  	ctrl     *gomock.Controller
    53  	recorder *MockReadCloserMockRecorder
    54  }
    55  
    56  // MockReadCloserMockRecorder is the mock recorder for MockReadCloser
    57  type MockReadCloserMockRecorder struct {
    58  	mock *MockReadCloser
    59  }
    60  
    61  // NewMockReadCloser creates a new mock instance
    62  func NewMockReadCloser(ctrl *gomock.Controller) *MockReadCloser {
    63  	mock := &MockReadCloser{ctrl: ctrl}
    64  	mock.recorder = &MockReadCloserMockRecorder{mock}
    65  	return mock
    66  }
    67  
    68  // EXPECT returns an object that allows the caller to indicate expected use
    69  func (m *MockReadCloser) EXPECT() *MockReadCloserMockRecorder {
    70  	return m.recorder
    71  }
    72  
    73  // Close mocks base method
    74  func (m *MockReadCloser) Close() error {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "Close")
    77  	ret0, _ := ret[0].(error)
    78  	return ret0
    79  }
    80  
    81  // Close indicates an expected call of Close
    82  func (mr *MockReadCloserMockRecorder) Close() *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReadCloser)(nil).Close))
    85  }
    86  
    87  // Read mocks base method
    88  func (m *MockReadCloser) Read(arg0 []byte) (int, error) {
    89  	m.ctrl.T.Helper()
    90  	ret := m.ctrl.Call(m, "Read", arg0)
    91  	ret0, _ := ret[0].(int)
    92  	ret1, _ := ret[1].(error)
    93  	return ret0, ret1
    94  }
    95  
    96  // Read indicates an expected call of Read
    97  func (mr *MockReadCloserMockRecorder) Read(arg0 interface{}) *gomock.Call {
    98  	mr.mock.ctrl.T.Helper()
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockReadCloser)(nil).Read), arg0)
   100  }
   101  
   102  // MockWriter is a mock of Writer interface
   103  type MockWriter struct {
   104  	ctrl     *gomock.Controller
   105  	recorder *MockWriterMockRecorder
   106  }
   107  
   108  // MockWriterMockRecorder is the mock recorder for MockWriter
   109  type MockWriterMockRecorder struct {
   110  	mock *MockWriter
   111  }
   112  
   113  // NewMockWriter creates a new mock instance
   114  func NewMockWriter(ctrl *gomock.Controller) *MockWriter {
   115  	mock := &MockWriter{ctrl: ctrl}
   116  	mock.recorder = &MockWriterMockRecorder{mock}
   117  	return mock
   118  }
   119  
   120  // EXPECT returns an object that allows the caller to indicate expected use
   121  func (m *MockWriter) EXPECT() *MockWriterMockRecorder {
   122  	return m.recorder
   123  }
   124  
   125  // Write mocks base method
   126  func (m *MockWriter) Write(arg0 []byte) (int, error) {
   127  	m.ctrl.T.Helper()
   128  	ret := m.ctrl.Call(m, "Write", arg0)
   129  	ret0, _ := ret[0].(int)
   130  	ret1, _ := ret[1].(error)
   131  	return ret0, ret1
   132  }
   133  
   134  // Write indicates an expected call of Write
   135  func (mr *MockWriterMockRecorder) Write(arg0 interface{}) *gomock.Call {
   136  	mr.mock.ctrl.T.Helper()
   137  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockWriter)(nil).Write), arg0)
   138  }
   139  
   140  // MockWriteCloser is a mock of WriteCloser interface
   141  type MockWriteCloser struct {
   142  	ctrl     *gomock.Controller
   143  	recorder *MockWriteCloserMockRecorder
   144  }
   145  
   146  // MockWriteCloserMockRecorder is the mock recorder for MockWriteCloser
   147  type MockWriteCloserMockRecorder struct {
   148  	mock *MockWriteCloser
   149  }
   150  
   151  // NewMockWriteCloser creates a new mock instance
   152  func NewMockWriteCloser(ctrl *gomock.Controller) *MockWriteCloser {
   153  	mock := &MockWriteCloser{ctrl: ctrl}
   154  	mock.recorder = &MockWriteCloserMockRecorder{mock}
   155  	return mock
   156  }
   157  
   158  // EXPECT returns an object that allows the caller to indicate expected use
   159  func (m *MockWriteCloser) EXPECT() *MockWriteCloserMockRecorder {
   160  	return m.recorder
   161  }
   162  
   163  // Close mocks base method
   164  func (m *MockWriteCloser) Close() error {
   165  	m.ctrl.T.Helper()
   166  	ret := m.ctrl.Call(m, "Close")
   167  	ret0, _ := ret[0].(error)
   168  	return ret0
   169  }
   170  
   171  // Close indicates an expected call of Close
   172  func (mr *MockWriteCloserMockRecorder) Close() *gomock.Call {
   173  	mr.mock.ctrl.T.Helper()
   174  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockWriteCloser)(nil).Close))
   175  }
   176  
   177  // Write mocks base method
   178  func (m *MockWriteCloser) Write(arg0 []byte) (int, error) {
   179  	m.ctrl.T.Helper()
   180  	ret := m.ctrl.Call(m, "Write", arg0)
   181  	ret0, _ := ret[0].(int)
   182  	ret1, _ := ret[1].(error)
   183  	return ret0, ret1
   184  }
   185  
   186  // Write indicates an expected call of Write
   187  func (mr *MockWriteCloserMockRecorder) Write(arg0 interface{}) *gomock.Call {
   188  	mr.mock.ctrl.T.Helper()
   189  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockWriteCloser)(nil).Write), arg0)
   190  }
   191  
   192  // MockReadWriteCloser is a mock of ReadWriteCloser interface
   193  type MockReadWriteCloser struct {
   194  	ctrl     *gomock.Controller
   195  	recorder *MockReadWriteCloserMockRecorder
   196  }
   197  
   198  // MockReadWriteCloserMockRecorder is the mock recorder for MockReadWriteCloser
   199  type MockReadWriteCloserMockRecorder struct {
   200  	mock *MockReadWriteCloser
   201  }
   202  
   203  // NewMockReadWriteCloser creates a new mock instance
   204  func NewMockReadWriteCloser(ctrl *gomock.Controller) *MockReadWriteCloser {
   205  	mock := &MockReadWriteCloser{ctrl: ctrl}
   206  	mock.recorder = &MockReadWriteCloserMockRecorder{mock}
   207  	return mock
   208  }
   209  
   210  // EXPECT returns an object that allows the caller to indicate expected use
   211  func (m *MockReadWriteCloser) EXPECT() *MockReadWriteCloserMockRecorder {
   212  	return m.recorder
   213  }
   214  
   215  // Close mocks base method
   216  func (m *MockReadWriteCloser) Close() error {
   217  	m.ctrl.T.Helper()
   218  	ret := m.ctrl.Call(m, "Close")
   219  	ret0, _ := ret[0].(error)
   220  	return ret0
   221  }
   222  
   223  // Close indicates an expected call of Close
   224  func (mr *MockReadWriteCloserMockRecorder) Close() *gomock.Call {
   225  	mr.mock.ctrl.T.Helper()
   226  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReadWriteCloser)(nil).Close))
   227  }
   228  
   229  // Read mocks base method
   230  func (m *MockReadWriteCloser) Read(arg0 []byte) (int, error) {
   231  	m.ctrl.T.Helper()
   232  	ret := m.ctrl.Call(m, "Read", arg0)
   233  	ret0, _ := ret[0].(int)
   234  	ret1, _ := ret[1].(error)
   235  	return ret0, ret1
   236  }
   237  
   238  // Read indicates an expected call of Read
   239  func (mr *MockReadWriteCloserMockRecorder) Read(arg0 interface{}) *gomock.Call {
   240  	mr.mock.ctrl.T.Helper()
   241  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockReadWriteCloser)(nil).Read), arg0)
   242  }
   243  
   244  // Write mocks base method
   245  func (m *MockReadWriteCloser) Write(arg0 []byte) (int, error) {
   246  	m.ctrl.T.Helper()
   247  	ret := m.ctrl.Call(m, "Write", arg0)
   248  	ret0, _ := ret[0].(int)
   249  	ret1, _ := ret[1].(error)
   250  	return ret0, ret1
   251  }
   252  
   253  // Write indicates an expected call of Write
   254  func (mr *MockReadWriteCloserMockRecorder) Write(arg0 interface{}) *gomock.Call {
   255  	mr.mock.ctrl.T.Helper()
   256  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockReadWriteCloser)(nil).Write), arg0)
   257  }