github.com/m3db/m3@v1.5.0/src/msg/producer/producer_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/msg/producer (interfaces: Message,Producer)
     3  
     4  // Copyright (c) 2021 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 producer is a generated GoMock package.
    25  package producer
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/cluster/services"
    31  
    32  	"github.com/golang/mock/gomock"
    33  )
    34  
    35  // MockMessage is a mock of Message interface.
    36  type MockMessage struct {
    37  	ctrl     *gomock.Controller
    38  	recorder *MockMessageMockRecorder
    39  }
    40  
    41  // MockMessageMockRecorder is the mock recorder for MockMessage.
    42  type MockMessageMockRecorder struct {
    43  	mock *MockMessage
    44  }
    45  
    46  // NewMockMessage creates a new mock instance.
    47  func NewMockMessage(ctrl *gomock.Controller) *MockMessage {
    48  	mock := &MockMessage{ctrl: ctrl}
    49  	mock.recorder = &MockMessageMockRecorder{mock}
    50  	return mock
    51  }
    52  
    53  // EXPECT returns an object that allows the caller to indicate expected use.
    54  func (m *MockMessage) EXPECT() *MockMessageMockRecorder {
    55  	return m.recorder
    56  }
    57  
    58  // Bytes mocks base method.
    59  func (m *MockMessage) Bytes() []byte {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "Bytes")
    62  	ret0, _ := ret[0].([]byte)
    63  	return ret0
    64  }
    65  
    66  // Bytes indicates an expected call of Bytes.
    67  func (mr *MockMessageMockRecorder) Bytes() *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockMessage)(nil).Bytes))
    70  }
    71  
    72  // Finalize mocks base method.
    73  func (m *MockMessage) Finalize(arg0 FinalizeReason) {
    74  	m.ctrl.T.Helper()
    75  	m.ctrl.Call(m, "Finalize", arg0)
    76  }
    77  
    78  // Finalize indicates an expected call of Finalize.
    79  func (mr *MockMessageMockRecorder) Finalize(arg0 interface{}) *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockMessage)(nil).Finalize), arg0)
    82  }
    83  
    84  // Shard mocks base method.
    85  func (m *MockMessage) Shard() uint32 {
    86  	m.ctrl.T.Helper()
    87  	ret := m.ctrl.Call(m, "Shard")
    88  	ret0, _ := ret[0].(uint32)
    89  	return ret0
    90  }
    91  
    92  // Shard indicates an expected call of Shard.
    93  func (mr *MockMessageMockRecorder) Shard() *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shard", reflect.TypeOf((*MockMessage)(nil).Shard))
    96  }
    97  
    98  // Size mocks base method.
    99  func (m *MockMessage) Size() int {
   100  	m.ctrl.T.Helper()
   101  	ret := m.ctrl.Call(m, "Size")
   102  	ret0, _ := ret[0].(int)
   103  	return ret0
   104  }
   105  
   106  // Size indicates an expected call of Size.
   107  func (mr *MockMessageMockRecorder) Size() *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockMessage)(nil).Size))
   110  }
   111  
   112  // MockProducer is a mock of Producer interface.
   113  type MockProducer struct {
   114  	ctrl     *gomock.Controller
   115  	recorder *MockProducerMockRecorder
   116  }
   117  
   118  // MockProducerMockRecorder is the mock recorder for MockProducer.
   119  type MockProducerMockRecorder struct {
   120  	mock *MockProducer
   121  }
   122  
   123  // NewMockProducer creates a new mock instance.
   124  func NewMockProducer(ctrl *gomock.Controller) *MockProducer {
   125  	mock := &MockProducer{ctrl: ctrl}
   126  	mock.recorder = &MockProducerMockRecorder{mock}
   127  	return mock
   128  }
   129  
   130  // EXPECT returns an object that allows the caller to indicate expected use.
   131  func (m *MockProducer) EXPECT() *MockProducerMockRecorder {
   132  	return m.recorder
   133  }
   134  
   135  // Close mocks base method.
   136  func (m *MockProducer) Close(arg0 CloseType) {
   137  	m.ctrl.T.Helper()
   138  	m.ctrl.Call(m, "Close", arg0)
   139  }
   140  
   141  // Close indicates an expected call of Close.
   142  func (mr *MockProducerMockRecorder) Close(arg0 interface{}) *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockProducer)(nil).Close), arg0)
   145  }
   146  
   147  // Init mocks base method.
   148  func (m *MockProducer) Init() error {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "Init")
   151  	ret0, _ := ret[0].(error)
   152  	return ret0
   153  }
   154  
   155  // Init indicates an expected call of Init.
   156  func (mr *MockProducerMockRecorder) Init() *gomock.Call {
   157  	mr.mock.ctrl.T.Helper()
   158  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockProducer)(nil).Init))
   159  }
   160  
   161  // NumShards mocks base method.
   162  func (m *MockProducer) NumShards() uint32 {
   163  	m.ctrl.T.Helper()
   164  	ret := m.ctrl.Call(m, "NumShards")
   165  	ret0, _ := ret[0].(uint32)
   166  	return ret0
   167  }
   168  
   169  // NumShards indicates an expected call of NumShards.
   170  func (mr *MockProducerMockRecorder) NumShards() *gomock.Call {
   171  	mr.mock.ctrl.T.Helper()
   172  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumShards", reflect.TypeOf((*MockProducer)(nil).NumShards))
   173  }
   174  
   175  // Produce mocks base method.
   176  func (m *MockProducer) Produce(arg0 Message) error {
   177  	m.ctrl.T.Helper()
   178  	ret := m.ctrl.Call(m, "Produce", arg0)
   179  	ret0, _ := ret[0].(error)
   180  	return ret0
   181  }
   182  
   183  // Produce indicates an expected call of Produce.
   184  func (mr *MockProducerMockRecorder) Produce(arg0 interface{}) *gomock.Call {
   185  	mr.mock.ctrl.T.Helper()
   186  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Produce", reflect.TypeOf((*MockProducer)(nil).Produce), arg0)
   187  }
   188  
   189  // RegisterFilter mocks base method.
   190  func (m *MockProducer) RegisterFilter(arg0 services.ServiceID, arg1 FilterFunc) {
   191  	m.ctrl.T.Helper()
   192  	m.ctrl.Call(m, "RegisterFilter", arg0, arg1)
   193  }
   194  
   195  // RegisterFilter indicates an expected call of RegisterFilter.
   196  func (mr *MockProducerMockRecorder) RegisterFilter(arg0, arg1 interface{}) *gomock.Call {
   197  	mr.mock.ctrl.T.Helper()
   198  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterFilter", reflect.TypeOf((*MockProducer)(nil).RegisterFilter), arg0, arg1)
   199  }
   200  
   201  // UnregisterFilter mocks base method.
   202  func (m *MockProducer) UnregisterFilter(arg0 services.ServiceID) {
   203  	m.ctrl.T.Helper()
   204  	m.ctrl.Call(m, "UnregisterFilter", arg0)
   205  }
   206  
   207  // UnregisterFilter indicates an expected call of UnregisterFilter.
   208  func (mr *MockProducerMockRecorder) UnregisterFilter(arg0 interface{}) *gomock.Call {
   209  	mr.mock.ctrl.T.Helper()
   210  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterFilter", reflect.TypeOf((*MockProducer)(nil).UnregisterFilter), arg0)
   211  }