github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/height_index.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // HeightIndex is an autogenerated mock type for the HeightIndex type
     8  type HeightIndex struct {
     9  	mock.Mock
    10  }
    11  
    12  // FirstHeight provides a mock function with given fields:
    13  func (_m *HeightIndex) FirstHeight() (uint64, error) {
    14  	ret := _m.Called()
    15  
    16  	var r0 uint64
    17  	var r1 error
    18  	if rf, ok := ret.Get(0).(func() (uint64, error)); ok {
    19  		return rf()
    20  	}
    21  	if rf, ok := ret.Get(0).(func() uint64); ok {
    22  		r0 = rf()
    23  	} else {
    24  		r0 = ret.Get(0).(uint64)
    25  	}
    26  
    27  	if rf, ok := ret.Get(1).(func() error); ok {
    28  		r1 = rf()
    29  	} else {
    30  		r1 = ret.Error(1)
    31  	}
    32  
    33  	return r0, r1
    34  }
    35  
    36  // LatestHeight provides a mock function with given fields:
    37  func (_m *HeightIndex) LatestHeight() (uint64, error) {
    38  	ret := _m.Called()
    39  
    40  	var r0 uint64
    41  	var r1 error
    42  	if rf, ok := ret.Get(0).(func() (uint64, error)); ok {
    43  		return rf()
    44  	}
    45  	if rf, ok := ret.Get(0).(func() uint64); ok {
    46  		r0 = rf()
    47  	} else {
    48  		r0 = ret.Get(0).(uint64)
    49  	}
    50  
    51  	if rf, ok := ret.Get(1).(func() error); ok {
    52  		r1 = rf()
    53  	} else {
    54  		r1 = ret.Error(1)
    55  	}
    56  
    57  	return r0, r1
    58  }
    59  
    60  // SetLatestHeight provides a mock function with given fields: height
    61  func (_m *HeightIndex) SetLatestHeight(height uint64) error {
    62  	ret := _m.Called(height)
    63  
    64  	var r0 error
    65  	if rf, ok := ret.Get(0).(func(uint64) error); ok {
    66  		r0 = rf(height)
    67  	} else {
    68  		r0 = ret.Error(0)
    69  	}
    70  
    71  	return r0
    72  }
    73  
    74  type mockConstructorTestingTNewHeightIndex interface {
    75  	mock.TestingT
    76  	Cleanup(func())
    77  }
    78  
    79  // NewHeightIndex creates a new instance of HeightIndex. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    80  func NewHeightIndex(t mockConstructorTestingTNewHeightIndex) *HeightIndex {
    81  	mock := &HeightIndex{}
    82  	mock.Mock.Test(t)
    83  
    84  	t.Cleanup(func() { mock.AssertExpectations(t) })
    85  
    86  	return mock
    87  }