github.com/m3db/m3@v1.5.0/src/query/ts/ts_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/query/ts (interfaces: Values) 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 ts is a generated GoMock package. 25 package ts 26 27 import ( 28 "reflect" 29 "time" 30 31 "github.com/m3db/m3/src/query/models" 32 33 "github.com/golang/mock/gomock" 34 ) 35 36 // MockValues is a mock of Values interface. 37 type MockValues struct { 38 ctrl *gomock.Controller 39 recorder *MockValuesMockRecorder 40 } 41 42 // MockValuesMockRecorder is the mock recorder for MockValues. 43 type MockValuesMockRecorder struct { 44 mock *MockValues 45 } 46 47 // NewMockValues creates a new mock instance. 48 func NewMockValues(ctrl *gomock.Controller) *MockValues { 49 mock := &MockValues{ctrl: ctrl} 50 mock.recorder = &MockValuesMockRecorder{mock} 51 return mock 52 } 53 54 // EXPECT returns an object that allows the caller to indicate expected use. 55 func (m *MockValues) EXPECT() *MockValuesMockRecorder { 56 return m.recorder 57 } 58 59 // AlignToBounds mocks base method. 60 func (m *MockValues) AlignToBounds(arg0 models.Bounds, arg1 time.Duration, arg2 AlignedDatapoints) AlignedDatapoints { 61 m.ctrl.T.Helper() 62 ret := m.ctrl.Call(m, "AlignToBounds", arg0, arg1, arg2) 63 ret0, _ := ret[0].(AlignedDatapoints) 64 return ret0 65 } 66 67 // AlignToBounds indicates an expected call of AlignToBounds. 68 func (mr *MockValuesMockRecorder) AlignToBounds(arg0, arg1, arg2 interface{}) *gomock.Call { 69 mr.mock.ctrl.T.Helper() 70 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlignToBounds", reflect.TypeOf((*MockValues)(nil).AlignToBounds), arg0, arg1, arg2) 71 } 72 73 // AlignToBoundsNoWriteForward mocks base method. 74 func (m *MockValues) AlignToBoundsNoWriteForward(arg0 models.Bounds, arg1 time.Duration, arg2 AlignedDatapoints) AlignedDatapoints { 75 m.ctrl.T.Helper() 76 ret := m.ctrl.Call(m, "AlignToBoundsNoWriteForward", arg0, arg1, arg2) 77 ret0, _ := ret[0].(AlignedDatapoints) 78 return ret0 79 } 80 81 // AlignToBoundsNoWriteForward indicates an expected call of AlignToBoundsNoWriteForward. 82 func (mr *MockValuesMockRecorder) AlignToBoundsNoWriteForward(arg0, arg1, arg2 interface{}) *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlignToBoundsNoWriteForward", reflect.TypeOf((*MockValues)(nil).AlignToBoundsNoWriteForward), arg0, arg1, arg2) 85 } 86 87 // DatapointAt mocks base method. 88 func (m *MockValues) DatapointAt(arg0 int) Datapoint { 89 m.ctrl.T.Helper() 90 ret := m.ctrl.Call(m, "DatapointAt", arg0) 91 ret0, _ := ret[0].(Datapoint) 92 return ret0 93 } 94 95 // DatapointAt indicates an expected call of DatapointAt. 96 func (mr *MockValuesMockRecorder) DatapointAt(arg0 interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DatapointAt", reflect.TypeOf((*MockValues)(nil).DatapointAt), arg0) 99 } 100 101 // Datapoints mocks base method. 102 func (m *MockValues) Datapoints() []Datapoint { 103 m.ctrl.T.Helper() 104 ret := m.ctrl.Call(m, "Datapoints") 105 ret0, _ := ret[0].([]Datapoint) 106 return ret0 107 } 108 109 // Datapoints indicates an expected call of Datapoin 110 func (mr *MockValuesMockRecorder) Datapoints() *gomock.Call { 111 mr.mock.ctrl.T.Helper() 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Datapoints", reflect.TypeOf((*MockValues)(nil).Datapoints)) 113 } 114 115 // Len mocks base method. 116 func (m *MockValues) Len() int { 117 m.ctrl.T.Helper() 118 ret := m.ctrl.Call(m, "Len") 119 ret0, _ := ret[0].(int) 120 return ret0 121 } 122 123 // Len indicates an expected call of Len. 124 func (mr *MockValuesMockRecorder) Len() *gomock.Call { 125 mr.mock.ctrl.T.Helper() 126 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockValues)(nil).Len)) 127 } 128 129 // ValueAt mocks base method. 130 func (m *MockValues) ValueAt(arg0 int) float64 { 131 m.ctrl.T.Helper() 132 ret := m.ctrl.Call(m, "ValueAt", arg0) 133 ret0, _ := ret[0].(float64) 134 return ret0 135 } 136 137 // ValueAt indicates an expected call of ValueAt. 138 func (mr *MockValuesMockRecorder) ValueAt(arg0 interface{}) *gomock.Call { 139 mr.mock.ctrl.T.Helper() 140 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValueAt", reflect.TypeOf((*MockValues)(nil).ValueAt), arg0) 141 }