github.com/rohankumardubey/aresdb@v0.0.2-0.20190517170215-e54e3ca06b9c/memstore/mocks/sortedColumnIterator.go (about) 1 // Copyright (c) 2017-2018 Uber Technologies, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by mockery v1.0.0. DO NOT EDIT. 16 package mocks 17 18 import common "github.com/uber/aresdb/memstore/common" 19 20 import mock "github.com/stretchr/testify/mock" 21 22 // sortedColumnIterator is an autogenerated mock type for the sortedColumnIterator type 23 type sortedColumnIterator struct { 24 mock.Mock 25 } 26 27 // count provides a mock function with given fields: 28 func (_m *sortedColumnIterator) count() uint32 { 29 ret := _m.Called() 30 31 var r0 uint32 32 if rf, ok := ret.Get(0).(func() uint32); ok { 33 r0 = rf() 34 } else { 35 r0 = ret.Get(0).(uint32) 36 } 37 38 return r0 39 } 40 41 // currentPosition provides a mock function with given fields: 42 func (_m *sortedColumnIterator) currentPosition() uint32 { 43 ret := _m.Called() 44 45 var r0 uint32 46 if rf, ok := ret.Get(0).(func() uint32); ok { 47 r0 = rf() 48 } else { 49 r0 = ret.Get(0).(uint32) 50 } 51 52 return r0 53 } 54 55 // currentSkipRows provides a mock function with given fields: 56 func (_m *sortedColumnIterator) currentSkipRows() []int { 57 ret := _m.Called() 58 59 var r0 []int 60 if rf, ok := ret.Get(0).(func() []int); ok { 61 r0 = rf() 62 } else { 63 if ret.Get(0) != nil { 64 r0 = ret.Get(0).([]int) 65 } 66 } 67 68 return r0 69 } 70 71 // done provides a mock function with given fields: 72 func (_m *sortedColumnIterator) done() bool { 73 ret := _m.Called() 74 75 var r0 bool 76 if rf, ok := ret.Get(0).(func() bool); ok { 77 r0 = rf() 78 } else { 79 r0 = ret.Get(0).(bool) 80 } 81 82 return r0 83 } 84 85 // index provides a mock function with given fields: 86 func (_m *sortedColumnIterator) index() int { 87 ret := _m.Called() 88 89 var r0 int 90 if rf, ok := ret.Get(0).(func() int); ok { 91 r0 = rf() 92 } else { 93 r0 = ret.Get(0).(int) 94 } 95 96 return r0 97 } 98 99 // next provides a mock function with given fields: 100 func (_m *sortedColumnIterator) next() { 101 _m.Called() 102 } 103 104 // nextPosition provides a mock function with given fields: 105 func (_m *sortedColumnIterator) nextPosition() uint32 { 106 ret := _m.Called() 107 108 var r0 uint32 109 if rf, ok := ret.Get(0).(func() uint32); ok { 110 r0 = rf() 111 } else { 112 r0 = ret.Get(0).(uint32) 113 } 114 115 return r0 116 } 117 118 // read provides a mock function with given fields: 119 func (_m *sortedColumnIterator) read() { 120 _m.Called() 121 } 122 123 // setEndPosition provides a mock function with given fields: pos 124 func (_m *sortedColumnIterator) setEndPosition(pos uint32) { 125 _m.Called(pos) 126 } 127 128 // value provides a mock function with given fields: 129 func (_m *sortedColumnIterator) value() common.DataValue { 130 ret := _m.Called() 131 132 var r0 common.DataValue 133 if rf, ok := ret.Get(0).(func() common.DataValue); ok { 134 r0 = rf() 135 } else { 136 r0 = ret.Get(0).(common.DataValue) 137 } 138 139 return r0 140 }