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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/msg/topic (interfaces: Service)
     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 topic is a generated GoMock package.
    25  package topic
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/golang/mock/gomock"
    31  )
    32  
    33  // MockService is a mock of Service interface.
    34  type MockService struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *MockServiceMockRecorder
    37  }
    38  
    39  // MockServiceMockRecorder is the mock recorder for MockService.
    40  type MockServiceMockRecorder struct {
    41  	mock *MockService
    42  }
    43  
    44  // NewMockService creates a new mock instance.
    45  func NewMockService(ctrl *gomock.Controller) *MockService {
    46  	mock := &MockService{ctrl: ctrl}
    47  	mock.recorder = &MockServiceMockRecorder{mock}
    48  	return mock
    49  }
    50  
    51  // EXPECT returns an object that allows the caller to indicate expected use.
    52  func (m *MockService) EXPECT() *MockServiceMockRecorder {
    53  	return m.recorder
    54  }
    55  
    56  // CheckAndSet mocks base method.
    57  func (m *MockService) CheckAndSet(arg0 Topic, arg1 int) (Topic, error) {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "CheckAndSet", arg0, arg1)
    60  	ret0, _ := ret[0].(Topic)
    61  	ret1, _ := ret[1].(error)
    62  	return ret0, ret1
    63  }
    64  
    65  // CheckAndSet indicates an expected call of CheckAndSet.
    66  func (mr *MockServiceMockRecorder) CheckAndSet(arg0, arg1 interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckAndSet", reflect.TypeOf((*MockService)(nil).CheckAndSet), arg0, arg1)
    69  }
    70  
    71  // Delete mocks base method.
    72  func (m *MockService) Delete(arg0 string) error {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "Delete", arg0)
    75  	ret0, _ := ret[0].(error)
    76  	return ret0
    77  }
    78  
    79  // Delete indicates an expected call of Delete.
    80  func (mr *MockServiceMockRecorder) Delete(arg0 interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockService)(nil).Delete), arg0)
    83  }
    84  
    85  // Get mocks base method.
    86  func (m *MockService) Get(arg0 string) (Topic, error) {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "Get", arg0)
    89  	ret0, _ := ret[0].(Topic)
    90  	ret1, _ := ret[1].(error)
    91  	return ret0, ret1
    92  }
    93  
    94  // Get indicates an expected call of Get.
    95  func (mr *MockServiceMockRecorder) Get(arg0 interface{}) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockService)(nil).Get), arg0)
    98  }
    99  
   100  // Watch mocks base method.
   101  func (m *MockService) Watch(arg0 string) (Watch, error) {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "Watch", arg0)
   104  	ret0, _ := ret[0].(Watch)
   105  	ret1, _ := ret[1].(error)
   106  	return ret0, ret1
   107  }
   108  
   109  // Watch indicates an expected call of Watch.
   110  func (mr *MockServiceMockRecorder) Watch(arg0 interface{}) *gomock.Call {
   111  	mr.mock.ctrl.T.Helper()
   112  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockService)(nil).Watch), arg0)
   113  }