github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/msg/consumer/consumer_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/msg/consumer (interfaces: Message,MessageProcessor)
     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 consumer is a generated GoMock package.
    25  package consumer
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/golang/mock/gomock"
    31  )
    32  
    33  // MockMessage is a mock of Message interface.
    34  type MockMessage struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *MockMessageMockRecorder
    37  }
    38  
    39  // MockMessageMockRecorder is the mock recorder for MockMessage.
    40  type MockMessageMockRecorder struct {
    41  	mock *MockMessage
    42  }
    43  
    44  // NewMockMessage creates a new mock instance.
    45  func NewMockMessage(ctrl *gomock.Controller) *MockMessage {
    46  	mock := &MockMessage{ctrl: ctrl}
    47  	mock.recorder = &MockMessageMockRecorder{mock}
    48  	return mock
    49  }
    50  
    51  // EXPECT returns an object that allows the caller to indicate expected use.
    52  func (m *MockMessage) EXPECT() *MockMessageMockRecorder {
    53  	return m.recorder
    54  }
    55  
    56  // Ack mocks base method.
    57  func (m *MockMessage) Ack() {
    58  	m.ctrl.T.Helper()
    59  	m.ctrl.Call(m, "Ack")
    60  }
    61  
    62  // Ack indicates an expected call of Ack.
    63  func (mr *MockMessageMockRecorder) Ack() *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ack", reflect.TypeOf((*MockMessage)(nil).Ack))
    66  }
    67  
    68  // Bytes mocks base method.
    69  func (m *MockMessage) Bytes() []byte {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "Bytes")
    72  	ret0, _ := ret[0].([]byte)
    73  	return ret0
    74  }
    75  
    76  // Bytes indicates an expected call of Bytes.
    77  func (mr *MockMessageMockRecorder) Bytes() *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockMessage)(nil).Bytes))
    80  }
    81  
    82  // SentAtNanos mocks base method.
    83  func (m *MockMessage) SentAtNanos() uint64 {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "SentAtNanos")
    86  	ret0, _ := ret[0].(uint64)
    87  	return ret0
    88  }
    89  
    90  // SentAtNanos indicates an expected call of SentAtNanos.
    91  func (mr *MockMessageMockRecorder) SentAtNanos() *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentAtNanos", reflect.TypeOf((*MockMessage)(nil).SentAtNanos))
    94  }
    95  
    96  // ShardID mocks base method.
    97  func (m *MockMessage) ShardID() uint64 {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "ShardID")
   100  	ret0, _ := ret[0].(uint64)
   101  	return ret0
   102  }
   103  
   104  // ShardID indicates an expected call of ShardID.
   105  func (mr *MockMessageMockRecorder) ShardID() *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShardID", reflect.TypeOf((*MockMessage)(nil).ShardID))
   108  }
   109  
   110  // MockMessageProcessor is a mock of MessageProcessor interface.
   111  type MockMessageProcessor struct {
   112  	ctrl     *gomock.Controller
   113  	recorder *MockMessageProcessorMockRecorder
   114  }
   115  
   116  // MockMessageProcessorMockRecorder is the mock recorder for MockMessageProcessor.
   117  type MockMessageProcessorMockRecorder struct {
   118  	mock *MockMessageProcessor
   119  }
   120  
   121  // NewMockMessageProcessor creates a new mock instance.
   122  func NewMockMessageProcessor(ctrl *gomock.Controller) *MockMessageProcessor {
   123  	mock := &MockMessageProcessor{ctrl: ctrl}
   124  	mock.recorder = &MockMessageProcessorMockRecorder{mock}
   125  	return mock
   126  }
   127  
   128  // EXPECT returns an object that allows the caller to indicate expected use.
   129  func (m *MockMessageProcessor) EXPECT() *MockMessageProcessorMockRecorder {
   130  	return m.recorder
   131  }
   132  
   133  // Close mocks base method.
   134  func (m *MockMessageProcessor) Close() {
   135  	m.ctrl.T.Helper()
   136  	m.ctrl.Call(m, "Close")
   137  }
   138  
   139  // Close indicates an expected call of Close.
   140  func (mr *MockMessageProcessorMockRecorder) Close() *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockMessageProcessor)(nil).Close))
   143  }
   144  
   145  // Process mocks base method.
   146  func (m *MockMessageProcessor) Process(arg0 Message) {
   147  	m.ctrl.T.Helper()
   148  	m.ctrl.Call(m, "Process", arg0)
   149  }
   150  
   151  // Process indicates an expected call of Process.
   152  func (mr *MockMessageProcessorMockRecorder) Process(arg0 interface{}) *gomock.Call {
   153  	mr.mock.ctrl.T.Helper()
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*MockMessageProcessor)(nil).Process), arg0)
   155  }