github.com/m3db/m3@v1.5.0/src/query/storage/storage_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/query/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  	"time"
    31  
    32  	"github.com/m3db/m3/src/query/block"
    33  	"github.com/m3db/m3/src/query/storage/m3/consolidators"
    34  	"github.com/m3db/m3/src/query/storage/m3/storagemetadata"
    35  
    36  	"github.com/golang/mock/gomock"
    37  )
    38  
    39  // MockStorage is a mock of Storage interface.
    40  type MockStorage struct {
    41  	ctrl     *gomock.Controller
    42  	recorder *MockStorageMockRecorder
    43  }
    44  
    45  // MockStorageMockRecorder is the mock recorder for MockStorage.
    46  type MockStorageMockRecorder struct {
    47  	mock *MockStorage
    48  }
    49  
    50  // NewMockStorage creates a new mock instance.
    51  func NewMockStorage(ctrl *gomock.Controller) *MockStorage {
    52  	mock := &MockStorage{ctrl: ctrl}
    53  	mock.recorder = &MockStorageMockRecorder{mock}
    54  	return mock
    55  }
    56  
    57  // EXPECT returns an object that allows the caller to indicate expected use.
    58  func (m *MockStorage) EXPECT() *MockStorageMockRecorder {
    59  	return m.recorder
    60  }
    61  
    62  // Close mocks base method.
    63  func (m *MockStorage) 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 *MockStorageMockRecorder) Close() *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStorage)(nil).Close))
    74  }
    75  
    76  // CompleteTags mocks base method.
    77  func (m *MockStorage) CompleteTags(arg0 context.Context, arg1 *CompleteTagsQuery, arg2 *FetchOptions) (*consolidators.CompleteTagsResult, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "CompleteTags", arg0, arg1, arg2)
    80  	ret0, _ := ret[0].(*consolidators.CompleteTagsResult)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // CompleteTags indicates an expected call of CompleteTags.
    86  func (mr *MockStorageMockRecorder) CompleteTags(arg0, arg1, arg2 interface{}) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteTags", reflect.TypeOf((*MockStorage)(nil).CompleteTags), arg0, arg1, arg2)
    89  }
    90  
    91  // ErrorBehavior mocks base method.
    92  func (m *MockStorage) ErrorBehavior() ErrorBehavior {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "ErrorBehavior")
    95  	ret0, _ := ret[0].(ErrorBehavior)
    96  	return ret0
    97  }
    98  
    99  // ErrorBehavior indicates an expected call of ErrorBehavior.
   100  func (mr *MockStorageMockRecorder) ErrorBehavior() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ErrorBehavior", reflect.TypeOf((*MockStorage)(nil).ErrorBehavior))
   103  }
   104  
   105  // FetchBlocks mocks base method.
   106  func (m *MockStorage) FetchBlocks(arg0 context.Context, arg1 *FetchQuery, arg2 *FetchOptions) (block.Result, error) {
   107  	m.ctrl.T.Helper()
   108  	ret := m.ctrl.Call(m, "FetchBlocks", arg0, arg1, arg2)
   109  	ret0, _ := ret[0].(block.Result)
   110  	ret1, _ := ret[1].(error)
   111  	return ret0, ret1
   112  }
   113  
   114  // FetchBlocks indicates an expected call of FetchBlocks.
   115  func (mr *MockStorageMockRecorder) FetchBlocks(arg0, arg1, arg2 interface{}) *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocks", reflect.TypeOf((*MockStorage)(nil).FetchBlocks), arg0, arg1, arg2)
   118  }
   119  
   120  // FetchCompressed mocks base method.
   121  func (m *MockStorage) FetchCompressed(arg0 context.Context, arg1 *FetchQuery, arg2 *FetchOptions) (consolidators.MultiFetchResult, error) {
   122  	m.ctrl.T.Helper()
   123  	ret := m.ctrl.Call(m, "FetchCompressed", arg0, arg1, arg2)
   124  	ret0, _ := ret[0].(consolidators.MultiFetchResult)
   125  	ret1, _ := ret[1].(error)
   126  	return ret0, ret1
   127  }
   128  
   129  // FetchCompressed indicates an expected call of FetchCompressed.
   130  func (mr *MockStorageMockRecorder) FetchCompressed(arg0, arg1, arg2 interface{}) *gomock.Call {
   131  	mr.mock.ctrl.T.Helper()
   132  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCompressed", reflect.TypeOf((*MockStorage)(nil).FetchCompressed), arg0, arg1, arg2)
   133  }
   134  
   135  // FetchProm mocks base method.
   136  func (m *MockStorage) FetchProm(arg0 context.Context, arg1 *FetchQuery, arg2 *FetchOptions) (PromResult, error) {
   137  	m.ctrl.T.Helper()
   138  	ret := m.ctrl.Call(m, "FetchProm", arg0, arg1, arg2)
   139  	ret0, _ := ret[0].(PromResult)
   140  	ret1, _ := ret[1].(error)
   141  	return ret0, ret1
   142  }
   143  
   144  // FetchProm indicates an expected call of FetchProm.
   145  func (mr *MockStorageMockRecorder) FetchProm(arg0, arg1, arg2 interface{}) *gomock.Call {
   146  	mr.mock.ctrl.T.Helper()
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchProm", reflect.TypeOf((*MockStorage)(nil).FetchProm), arg0, arg1, arg2)
   148  }
   149  
   150  // Name mocks base method.
   151  func (m *MockStorage) Name() string {
   152  	m.ctrl.T.Helper()
   153  	ret := m.ctrl.Call(m, "Name")
   154  	ret0, _ := ret[0].(string)
   155  	return ret0
   156  }
   157  
   158  // Name indicates an expected call of Name.
   159  func (mr *MockStorageMockRecorder) Name() *gomock.Call {
   160  	mr.mock.ctrl.T.Helper()
   161  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockStorage)(nil).Name))
   162  }
   163  
   164  // QueryStorageMetadataAttributes mocks base method.
   165  func (m *MockStorage) QueryStorageMetadataAttributes(arg0 context.Context, arg1, arg2 time.Time, arg3 *FetchOptions) ([]storagemetadata.Attributes, error) {
   166  	m.ctrl.T.Helper()
   167  	ret := m.ctrl.Call(m, "QueryStorageMetadataAttributes", arg0, arg1, arg2, arg3)
   168  	ret0, _ := ret[0].([]storagemetadata.Attributes)
   169  	ret1, _ := ret[1].(error)
   170  	return ret0, ret1
   171  }
   172  
   173  // QueryStorageMetadataAttributes indicates an expected call of QueryStorageMetadataAttributes.
   174  func (mr *MockStorageMockRecorder) QueryStorageMetadataAttributes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   175  	mr.mock.ctrl.T.Helper()
   176  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryStorageMetadataAttributes", reflect.TypeOf((*MockStorage)(nil).QueryStorageMetadataAttributes), arg0, arg1, arg2, arg3)
   177  }
   178  
   179  // SearchSeries mocks base method.
   180  func (m *MockStorage) SearchSeries(arg0 context.Context, arg1 *FetchQuery, arg2 *FetchOptions) (*SearchResults, error) {
   181  	m.ctrl.T.Helper()
   182  	ret := m.ctrl.Call(m, "SearchSeries", arg0, arg1, arg2)
   183  	ret0, _ := ret[0].(*SearchResults)
   184  	ret1, _ := ret[1].(error)
   185  	return ret0, ret1
   186  }
   187  
   188  // SearchSeries indicates an expected call of SearchSeries.
   189  func (mr *MockStorageMockRecorder) SearchSeries(arg0, arg1, arg2 interface{}) *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchSeries", reflect.TypeOf((*MockStorage)(nil).SearchSeries), arg0, arg1, arg2)
   192  }
   193  
   194  // Type mocks base method.
   195  func (m *MockStorage) Type() Type {
   196  	m.ctrl.T.Helper()
   197  	ret := m.ctrl.Call(m, "Type")
   198  	ret0, _ := ret[0].(Type)
   199  	return ret0
   200  }
   201  
   202  // Type indicates an expected call of Type.
   203  func (mr *MockStorageMockRecorder) Type() *gomock.Call {
   204  	mr.mock.ctrl.T.Helper()
   205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockStorage)(nil).Type))
   206  }
   207  
   208  // Write mocks base method.
   209  func (m *MockStorage) Write(arg0 context.Context, arg1 *WriteQuery) error {
   210  	m.ctrl.T.Helper()
   211  	ret := m.ctrl.Call(m, "Write", arg0, arg1)
   212  	ret0, _ := ret[0].(error)
   213  	return ret0
   214  }
   215  
   216  // Write indicates an expected call of Write.
   217  func (mr *MockStorageMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call {
   218  	mr.mock.ctrl.T.Helper()
   219  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockStorage)(nil).Write), arg0, arg1)
   220  }