github.com/rohankumardubey/aresdb@v0.0.2-0.20190517170215-e54e3ca06b9c/memstore/mocks/BatchReader.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  // BatchReader is an autogenerated mock type for the BatchReader type
    23  type BatchReader struct {
    24  	mock.Mock
    25  }
    26  
    27  // GetDataValue provides a mock function with given fields: row, columnID
    28  func (_m *BatchReader) GetDataValue(row int, columnID int) common.DataValue {
    29  	ret := _m.Called(row, columnID)
    30  
    31  	var r0 common.DataValue
    32  	if rf, ok := ret.Get(0).(func(int, int) common.DataValue); ok {
    33  		r0 = rf(row, columnID)
    34  	} else {
    35  		r0 = ret.Get(0).(common.DataValue)
    36  	}
    37  
    38  	return r0
    39  }
    40  
    41  // GetDataValueWithDefault provides a mock function with given fields: row, columnID, defaultValue
    42  func (_m *BatchReader) GetDataValueWithDefault(row int, columnID int, defaultValue common.DataValue) common.DataValue {
    43  	ret := _m.Called(row, columnID, defaultValue)
    44  
    45  	var r0 common.DataValue
    46  	if rf, ok := ret.Get(0).(func(int, int, common.DataValue) common.DataValue); ok {
    47  		r0 = rf(row, columnID, defaultValue)
    48  	} else {
    49  		r0 = ret.Get(0).(common.DataValue)
    50  	}
    51  
    52  	return r0
    53  }