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