github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/query/functions/temporal/dependencies_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ../../functions/temporal/dependencies.go 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 temporal is a generated GoMock package. 25 package temporal 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/query/block" 31 "github.com/m3db/m3/src/query/models" 32 33 "github.com/golang/mock/gomock" 34 ) 35 36 // Mockcontroller is a mock of controller interface. 37 type Mockcontroller struct { 38 ctrl *gomock.Controller 39 recorder *MockcontrollerMockRecorder 40 } 41 42 // MockcontrollerMockRecorder is the mock recorder for Mockcontroller. 43 type MockcontrollerMockRecorder struct { 44 mock *Mockcontroller 45 } 46 47 // NewMockcontroller creates a new mock instance. 48 func NewMockcontroller(ctrl *gomock.Controller) *Mockcontroller { 49 mock := &Mockcontroller{ctrl: ctrl} 50 mock.recorder = &MockcontrollerMockRecorder{mock} 51 return mock 52 } 53 54 // EXPECT returns an object that allows the caller to indicate expected use. 55 func (m *Mockcontroller) EXPECT() *MockcontrollerMockRecorder { 56 return m.recorder 57 } 58 59 // BlockBuilder mocks base method. 60 func (m *Mockcontroller) BlockBuilder(queryCtx *models.QueryContext, blockMeta block.Metadata, seriesMeta []block.SeriesMeta) (block.Builder, error) { 61 m.ctrl.T.Helper() 62 ret := m.ctrl.Call(m, "BlockBuilder", queryCtx, blockMeta, seriesMeta) 63 ret0, _ := ret[0].(block.Builder) 64 ret1, _ := ret[1].(error) 65 return ret0, ret1 66 } 67 68 // BlockBuilder indicates an expected call of BlockBuilder. 69 func (mr *MockcontrollerMockRecorder) BlockBuilder(queryCtx, blockMeta, seriesMeta interface{}) *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockBuilder", reflect.TypeOf((*Mockcontroller)(nil).BlockBuilder), queryCtx, blockMeta, seriesMeta) 72 } 73 74 // Process mocks base method. 75 func (m *Mockcontroller) Process(queryCtx *models.QueryContext, block block.Block) error { 76 m.ctrl.T.Helper() 77 ret := m.ctrl.Call(m, "Process", queryCtx, block) 78 ret0, _ := ret[0].(error) 79 return ret0 80 } 81 82 // Process indicates an expected call of Process. 83 func (mr *MockcontrollerMockRecorder) Process(queryCtx, block interface{}) *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*Mockcontroller)(nil).Process), queryCtx, block) 86 }