github.com/m3db/m3@v1.5.0/src/aggregator/client/writer_mgr_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/aggregator/client/writer_mgr.go
     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 client is a generated GoMock package.
    25  package client
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/cluster/placement"
    31  
    32  	"github.com/golang/mock/gomock"
    33  )
    34  
    35  // MockinstanceWriterManager is a mock of instanceWriterManager interface.
    36  type MockinstanceWriterManager struct {
    37  	ctrl     *gomock.Controller
    38  	recorder *MockinstanceWriterManagerMockRecorder
    39  }
    40  
    41  // MockinstanceWriterManagerMockRecorder is the mock recorder for MockinstanceWriterManager.
    42  type MockinstanceWriterManagerMockRecorder struct {
    43  	mock *MockinstanceWriterManager
    44  }
    45  
    46  // NewMockinstanceWriterManager creates a new mock instance.
    47  func NewMockinstanceWriterManager(ctrl *gomock.Controller) *MockinstanceWriterManager {
    48  	mock := &MockinstanceWriterManager{ctrl: ctrl}
    49  	mock.recorder = &MockinstanceWriterManagerMockRecorder{mock}
    50  	return mock
    51  }
    52  
    53  // EXPECT returns an object that allows the caller to indicate expected use.
    54  func (m *MockinstanceWriterManager) EXPECT() *MockinstanceWriterManagerMockRecorder {
    55  	return m.recorder
    56  }
    57  
    58  // AddInstances mocks base method.
    59  func (m *MockinstanceWriterManager) AddInstances(instances []placement.Instance) error {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "AddInstances", instances)
    62  	ret0, _ := ret[0].(error)
    63  	return ret0
    64  }
    65  
    66  // AddInstances indicates an expected call of AddInstances.
    67  func (mr *MockinstanceWriterManagerMockRecorder) AddInstances(instances interface{}) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddInstances", reflect.TypeOf((*MockinstanceWriterManager)(nil).AddInstances), instances)
    70  }
    71  
    72  // Close mocks base method.
    73  func (m *MockinstanceWriterManager) Close() error {
    74  	m.ctrl.T.Helper()
    75  	ret := m.ctrl.Call(m, "Close")
    76  	ret0, _ := ret[0].(error)
    77  	return ret0
    78  }
    79  
    80  // Close indicates an expected call of Close.
    81  func (mr *MockinstanceWriterManagerMockRecorder) Close() *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockinstanceWriterManager)(nil).Close))
    84  }
    85  
    86  // Flush mocks base method.
    87  func (m *MockinstanceWriterManager) Flush() error {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "Flush")
    90  	ret0, _ := ret[0].(error)
    91  	return ret0
    92  }
    93  
    94  // Flush indicates an expected call of Flush.
    95  func (mr *MockinstanceWriterManagerMockRecorder) Flush() *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockinstanceWriterManager)(nil).Flush))
    98  }
    99  
   100  // RemoveInstances mocks base method.
   101  func (m *MockinstanceWriterManager) RemoveInstances(instances []placement.Instance) error {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "RemoveInstances", instances)
   104  	ret0, _ := ret[0].(error)
   105  	return ret0
   106  }
   107  
   108  // RemoveInstances indicates an expected call of RemoveInstances.
   109  func (mr *MockinstanceWriterManagerMockRecorder) RemoveInstances(instances interface{}) *gomock.Call {
   110  	mr.mock.ctrl.T.Helper()
   111  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveInstances", reflect.TypeOf((*MockinstanceWriterManager)(nil).RemoveInstances), instances)
   112  }
   113  
   114  // Write mocks base method.
   115  func (m *MockinstanceWriterManager) Write(instance placement.Instance, shardID uint32, payload payloadUnion) error {
   116  	m.ctrl.T.Helper()
   117  	ret := m.ctrl.Call(m, "Write", instance, shardID, payload)
   118  	ret0, _ := ret[0].(error)
   119  	return ret0
   120  }
   121  
   122  // Write indicates an expected call of Write.
   123  func (mr *MockinstanceWriterManagerMockRecorder) Write(instance, shardID, payload interface{}) *gomock.Call {
   124  	mr.mock.ctrl.T.Helper()
   125  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockinstanceWriterManager)(nil).Write), instance, shardID, payload)
   126  }