github.com/rohankumardubey/aresdb@v0.0.2-0.20190517170215-e54e3ca06b9c/memstore/common/mocks/VectorParty.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  import io "io"
    20  import mock "github.com/stretchr/testify/mock"
    21  
    22  // VectorParty is an autogenerated mock type for the VectorParty type
    23  type VectorParty struct {
    24  	mock.Mock
    25  }
    26  
    27  // Allocate provides a mock function with given fields: hasCount
    28  func (_m *VectorParty) Allocate(hasCount bool) {
    29  	_m.Called(hasCount)
    30  }
    31  
    32  // Equals provides a mock function with given fields: other
    33  func (_m *VectorParty) Equals(other common.VectorParty) bool {
    34  	ret := _m.Called(other)
    35  
    36  	var r0 bool
    37  	if rf, ok := ret.Get(0).(func(common.VectorParty) bool); ok {
    38  		r0 = rf(other)
    39  	} else {
    40  		r0 = ret.Get(0).(bool)
    41  	}
    42  
    43  	return r0
    44  }
    45  
    46  // GetBytes provides a mock function with given fields:
    47  func (_m *VectorParty) GetBytes() int64 {
    48  	ret := _m.Called()
    49  
    50  	var r0 int64
    51  	if rf, ok := ret.Get(0).(func() int64); ok {
    52  		r0 = rf()
    53  	} else {
    54  		r0 = ret.Get(0).(int64)
    55  	}
    56  
    57  	return r0
    58  }
    59  
    60  // GetDataType provides a mock function with given fields:
    61  func (_m *VectorParty) GetDataType() common.DataType {
    62  	ret := _m.Called()
    63  
    64  	var r0 common.DataType
    65  	if rf, ok := ret.Get(0).(func() common.DataType); ok {
    66  		r0 = rf()
    67  	} else {
    68  		r0 = ret.Get(0).(common.DataType)
    69  	}
    70  
    71  	return r0
    72  }
    73  
    74  // GetDataValue provides a mock function with given fields: offset
    75  func (_m *VectorParty) GetDataValue(offset int) common.DataValue {
    76  	ret := _m.Called(offset)
    77  
    78  	var r0 common.DataValue
    79  	if rf, ok := ret.Get(0).(func(int) common.DataValue); ok {
    80  		r0 = rf(offset)
    81  	} else {
    82  		r0 = ret.Get(0).(common.DataValue)
    83  	}
    84  
    85  	return r0
    86  }
    87  
    88  // GetDataValueByRow provides a mock function with given fields: row
    89  func (_m *VectorParty) GetDataValueByRow(row int) common.DataValue {
    90  	ret := _m.Called(row)
    91  
    92  	var r0 common.DataValue
    93  	if rf, ok := ret.Get(0).(func(int) common.DataValue); ok {
    94  		r0 = rf(row)
    95  	} else {
    96  		r0 = ret.Get(0).(common.DataValue)
    97  	}
    98  
    99  	return r0
   100  }
   101  
   102  // GetLength provides a mock function with given fields:
   103  func (_m *VectorParty) GetLength() int {
   104  	ret := _m.Called()
   105  
   106  	var r0 int
   107  	if rf, ok := ret.Get(0).(func() int); ok {
   108  		r0 = rf()
   109  	} else {
   110  		r0 = ret.Get(0).(int)
   111  	}
   112  
   113  	return r0
   114  }
   115  
   116  // GetNonDefaultValueCount provides a mock function with given fields:
   117  func (_m *VectorParty) GetNonDefaultValueCount() int {
   118  	ret := _m.Called()
   119  
   120  	var r0 int
   121  	if rf, ok := ret.Get(0).(func() int); ok {
   122  		r0 = rf()
   123  	} else {
   124  		r0 = ret.Get(0).(int)
   125  	}
   126  
   127  	return r0
   128  }
   129  
   130  // GetValidity provides a mock function with given fields: offset
   131  func (_m *VectorParty) GetValidity(offset int) bool {
   132  	ret := _m.Called(offset)
   133  
   134  	var r0 bool
   135  	if rf, ok := ret.Get(0).(func(int) bool); ok {
   136  		r0 = rf(offset)
   137  	} else {
   138  		r0 = ret.Get(0).(bool)
   139  	}
   140  
   141  	return r0
   142  }
   143  
   144  // Read provides a mock function with given fields: reader, serializer
   145  func (_m *VectorParty) Read(reader io.Reader, serializer common.VectorPartySerializer) error {
   146  	ret := _m.Called(reader, serializer)
   147  
   148  	var r0 error
   149  	if rf, ok := ret.Get(0).(func(io.Reader, common.VectorPartySerializer) error); ok {
   150  		r0 = rf(reader, serializer)
   151  	} else {
   152  		r0 = ret.Error(0)
   153  	}
   154  
   155  	return r0
   156  }
   157  
   158  // SafeDestruct provides a mock function with given fields:
   159  func (_m *VectorParty) SafeDestruct() {
   160  	_m.Called()
   161  }
   162  
   163  // SetDataValue provides a mock function with given fields: offset, value, countsUpdateMode, counts
   164  func (_m *VectorParty) SetDataValue(offset int, value common.DataValue, countsUpdateMode common.ValueCountsUpdateMode, counts ...uint32) {
   165  	_va := make([]interface{}, len(counts))
   166  	for _i := range counts {
   167  		_va[_i] = counts[_i]
   168  	}
   169  	var _ca []interface{}
   170  	_ca = append(_ca, offset, value, countsUpdateMode)
   171  	_ca = append(_ca, _va...)
   172  	_m.Called(_ca...)
   173  }
   174  
   175  // Slice provides a mock function with given fields: startRow, numRows
   176  func (_m *VectorParty) Slice(startRow int, numRows int) common.SlicedVector {
   177  	ret := _m.Called(startRow, numRows)
   178  
   179  	var r0 common.SlicedVector
   180  	if rf, ok := ret.Get(0).(func(int, int) common.SlicedVector); ok {
   181  		r0 = rf(startRow, numRows)
   182  	} else {
   183  		r0 = ret.Get(0).(common.SlicedVector)
   184  	}
   185  
   186  	return r0
   187  }
   188  
   189  // Write provides a mock function with given fields: writer
   190  func (_m *VectorParty) Write(writer io.Writer) error {
   191  	ret := _m.Called(writer)
   192  
   193  	var r0 error
   194  	if rf, ok := ret.Get(0).(func(io.Writer) error); ok {
   195  		r0 = rf(writer)
   196  	} else {
   197  		r0 = ret.Error(0)
   198  	}
   199  
   200  	return r0
   201  }