github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/query/graphite/storage/storage_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/query/graphite/storage (interfaces: Storage)
     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 storage is a generated GoMock package.
    25  package storage
    26  
    27  import (
    28  	"context"
    29  	"reflect"
    30  
    31  	context0 "github.com/m3db/m3/src/query/graphite/context"
    32  	storage0 "github.com/m3db/m3/src/query/storage"
    33  	"github.com/m3db/m3/src/query/storage/m3/consolidators"
    34  
    35  	"github.com/golang/mock/gomock"
    36  )
    37  
    38  // MockStorage is a mock of Storage interface.
    39  type MockStorage struct {
    40  	ctrl     *gomock.Controller
    41  	recorder *MockStorageMockRecorder
    42  }
    43  
    44  // MockStorageMockRecorder is the mock recorder for MockStorage.
    45  type MockStorageMockRecorder struct {
    46  	mock *MockStorage
    47  }
    48  
    49  // NewMockStorage creates a new mock instance.
    50  func NewMockStorage(ctrl *gomock.Controller) *MockStorage {
    51  	mock := &MockStorage{ctrl: ctrl}
    52  	mock.recorder = &MockStorageMockRecorder{mock}
    53  	return mock
    54  }
    55  
    56  // EXPECT returns an object that allows the caller to indicate expected use.
    57  func (m *MockStorage) EXPECT() *MockStorageMockRecorder {
    58  	return m.recorder
    59  }
    60  
    61  // CompleteTags mocks base method.
    62  func (m *MockStorage) CompleteTags(arg0 context.Context, arg1 *storage0.CompleteTagsQuery, arg2 *storage0.FetchOptions) (*consolidators.CompleteTagsResult, error) {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "CompleteTags", arg0, arg1, arg2)
    65  	ret0, _ := ret[0].(*consolidators.CompleteTagsResult)
    66  	ret1, _ := ret[1].(error)
    67  	return ret0, ret1
    68  }
    69  
    70  // CompleteTags indicates an expected call of CompleteTags.
    71  func (mr *MockStorageMockRecorder) CompleteTags(arg0, arg1, arg2 interface{}) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteTags", reflect.TypeOf((*MockStorage)(nil).CompleteTags), arg0, arg1, arg2)
    74  }
    75  
    76  // FetchByQuery mocks base method.
    77  func (m *MockStorage) FetchByQuery(arg0 context0.Context, arg1 string, arg2 FetchOptions) (*FetchResult, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "FetchByQuery", arg0, arg1, arg2)
    80  	ret0, _ := ret[0].(*FetchResult)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // FetchByQuery indicates an expected call of FetchByQuery.
    86  func (mr *MockStorageMockRecorder) FetchByQuery(arg0, arg1, arg2 interface{}) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchByQuery", reflect.TypeOf((*MockStorage)(nil).FetchByQuery), arg0, arg1, arg2)
    89  }