go.temporal.io/server@v1.23.0/common/searchattribute/mapper_mock.go (about)

     1  // The MIT License
     2  //
     3  // Copyright (c) 2020 Temporal Technologies Inc.  All rights reserved.
     4  //
     5  // Copyright (c) 2020 Uber Technologies, Inc.
     6  //
     7  // Permission is hereby granted, free of charge, to any person obtaining a copy
     8  // of this software and associated documentation files (the "Software"), to deal
     9  // in the Software without restriction, including without limitation the rights
    10  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    11  // copies of the Software, and to permit persons to whom the Software is
    12  // furnished to do so, subject to the following conditions:
    13  //
    14  // The above copyright notice and this permission notice shall be included in
    15  // all copies or substantial portions of the Software.
    16  //
    17  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    18  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    19  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    20  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    21  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    22  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    23  // THE SOFTWARE.
    24  
    25  // Code generated by MockGen. DO NOT EDIT.
    26  // Source: mapper.go
    27  
    28  // Package searchattribute is a generated GoMock package.
    29  package searchattribute
    30  
    31  import (
    32  	reflect "reflect"
    33  
    34  	gomock "github.com/golang/mock/gomock"
    35  	namespace "go.temporal.io/server/common/namespace"
    36  )
    37  
    38  // MockMapper is a mock of Mapper interface.
    39  type MockMapper struct {
    40  	ctrl     *gomock.Controller
    41  	recorder *MockMapperMockRecorder
    42  }
    43  
    44  // MockMapperMockRecorder is the mock recorder for MockMapper.
    45  type MockMapperMockRecorder struct {
    46  	mock *MockMapper
    47  }
    48  
    49  // NewMockMapper creates a new mock instance.
    50  func NewMockMapper(ctrl *gomock.Controller) *MockMapper {
    51  	mock := &MockMapper{ctrl: ctrl}
    52  	mock.recorder = &MockMapperMockRecorder{mock}
    53  	return mock
    54  }
    55  
    56  // EXPECT returns an object that allows the caller to indicate expected use.
    57  func (m *MockMapper) EXPECT() *MockMapperMockRecorder {
    58  	return m.recorder
    59  }
    60  
    61  // GetAlias mocks base method.
    62  func (m *MockMapper) GetAlias(fieldName, namespace string) (string, error) {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "GetAlias", fieldName, namespace)
    65  	ret0, _ := ret[0].(string)
    66  	ret1, _ := ret[1].(error)
    67  	return ret0, ret1
    68  }
    69  
    70  // GetAlias indicates an expected call of GetAlias.
    71  func (mr *MockMapperMockRecorder) GetAlias(fieldName, namespace interface{}) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlias", reflect.TypeOf((*MockMapper)(nil).GetAlias), fieldName, namespace)
    74  }
    75  
    76  // GetFieldName mocks base method.
    77  func (m *MockMapper) GetFieldName(alias, namespace string) (string, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "GetFieldName", alias, namespace)
    80  	ret0, _ := ret[0].(string)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // GetFieldName indicates an expected call of GetFieldName.
    86  func (mr *MockMapperMockRecorder) GetFieldName(alias, namespace interface{}) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFieldName", reflect.TypeOf((*MockMapper)(nil).GetFieldName), alias, namespace)
    89  }
    90  
    91  // MockMapperProvider is a mock of MapperProvider interface.
    92  type MockMapperProvider struct {
    93  	ctrl     *gomock.Controller
    94  	recorder *MockMapperProviderMockRecorder
    95  }
    96  
    97  // MockMapperProviderMockRecorder is the mock recorder for MockMapperProvider.
    98  type MockMapperProviderMockRecorder struct {
    99  	mock *MockMapperProvider
   100  }
   101  
   102  // NewMockMapperProvider creates a new mock instance.
   103  func NewMockMapperProvider(ctrl *gomock.Controller) *MockMapperProvider {
   104  	mock := &MockMapperProvider{ctrl: ctrl}
   105  	mock.recorder = &MockMapperProviderMockRecorder{mock}
   106  	return mock
   107  }
   108  
   109  // EXPECT returns an object that allows the caller to indicate expected use.
   110  func (m *MockMapperProvider) EXPECT() *MockMapperProviderMockRecorder {
   111  	return m.recorder
   112  }
   113  
   114  // GetMapper mocks base method.
   115  func (m *MockMapperProvider) GetMapper(nsName namespace.Name) (Mapper, error) {
   116  	m.ctrl.T.Helper()
   117  	ret := m.ctrl.Call(m, "GetMapper", nsName)
   118  	ret0, _ := ret[0].(Mapper)
   119  	ret1, _ := ret[1].(error)
   120  	return ret0, ret1
   121  }
   122  
   123  // GetMapper indicates an expected call of GetMapper.
   124  func (mr *MockMapperProviderMockRecorder) GetMapper(nsName interface{}) *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMapper", reflect.TypeOf((*MockMapperProvider)(nil).GetMapper), nsName)
   127  }