github.com/m3db/m3@v1.5.0/src/metrics/matcher/matcher_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/metrics/matcher (interfaces: Matcher)
     3  
     4  // Copyright (c) 2022 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 matcher is a generated GoMock package.
    25  package matcher
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/metrics/aggregation"
    31  	"github.com/m3db/m3/src/metrics/metric"
    32  	"github.com/m3db/m3/src/metrics/metric/id"
    33  	"github.com/m3db/m3/src/metrics/rules"
    34  	"github.com/m3db/m3/src/metrics/rules/view"
    35  
    36  	"github.com/golang/mock/gomock"
    37  )
    38  
    39  // MockMatcher is a mock of Matcher interface.
    40  type MockMatcher struct {
    41  	ctrl     *gomock.Controller
    42  	recorder *MockMatcherMockRecorder
    43  }
    44  
    45  // MockMatcherMockRecorder is the mock recorder for MockMatcher.
    46  type MockMatcherMockRecorder struct {
    47  	mock *MockMatcher
    48  }
    49  
    50  // NewMockMatcher creates a new mock instance.
    51  func NewMockMatcher(ctrl *gomock.Controller) *MockMatcher {
    52  	mock := &MockMatcher{ctrl: ctrl}
    53  	mock.recorder = &MockMatcherMockRecorder{mock}
    54  	return mock
    55  }
    56  
    57  // EXPECT returns an object that allows the caller to indicate expected use.
    58  func (m *MockMatcher) EXPECT() *MockMatcherMockRecorder {
    59  	return m.recorder
    60  }
    61  
    62  // Close mocks base method.
    63  func (m *MockMatcher) Close() error {
    64  	m.ctrl.T.Helper()
    65  	ret := m.ctrl.Call(m, "Close")
    66  	ret0, _ := ret[0].(error)
    67  	return ret0
    68  }
    69  
    70  // Close indicates an expected call of Close.
    71  func (mr *MockMatcherMockRecorder) Close() *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockMatcher)(nil).Close))
    74  }
    75  
    76  // ForwardMatch mocks base method.
    77  func (m *MockMatcher) ForwardMatch(arg0 id.ID, arg1, arg2 int64, arg3 rules.MatchOptions) (rules.MatchResult, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "ForwardMatch", arg0, arg1, arg2, arg3)
    80  	ret0, _ := ret[0].(rules.MatchResult)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // ForwardMatch indicates an expected call of ForwardMatch.
    86  func (mr *MockMatcherMockRecorder) ForwardMatch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForwardMatch", reflect.TypeOf((*MockMatcher)(nil).ForwardMatch), arg0, arg1, arg2, arg3)
    89  }
    90  
    91  // LatestRollupRules mocks base method.
    92  func (m *MockMatcher) LatestRollupRules(arg0 []byte, arg1 int64) ([]view.RollupRule, error) {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "LatestRollupRules", arg0, arg1)
    95  	ret0, _ := ret[0].([]view.RollupRule)
    96  	ret1, _ := ret[1].(error)
    97  	return ret0, ret1
    98  }
    99  
   100  // LatestRollupRules indicates an expected call of LatestRollupRules.
   101  func (mr *MockMatcherMockRecorder) LatestRollupRules(arg0, arg1 interface{}) *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestRollupRules", reflect.TypeOf((*MockMatcher)(nil).LatestRollupRules), arg0, arg1)
   104  }
   105  
   106  // ReverseMatch mocks base method.
   107  func (m *MockMatcher) ReverseMatch(arg0 id.ID, arg1, arg2 int64, arg3 metric.Type, arg4 aggregation.Type, arg5 bool, arg6 aggregation.TypesOptions) (rules.MatchResult, error) {
   108  	m.ctrl.T.Helper()
   109  	ret := m.ctrl.Call(m, "ReverseMatch", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
   110  	ret0, _ := ret[0].(rules.MatchResult)
   111  	ret1, _ := ret[1].(error)
   112  	return ret0, ret1
   113  }
   114  
   115  // ReverseMatch indicates an expected call of ReverseMatch.
   116  func (mr *MockMatcherMockRecorder) ReverseMatch(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
   117  	mr.mock.ctrl.T.Helper()
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReverseMatch", reflect.TypeOf((*MockMatcher)(nil).ReverseMatch), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
   119  }