github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/consumer_progress.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  // ConsumerProgress is an autogenerated mock type for the ConsumerProgress type
     8  type ConsumerProgress struct {
     9  	mock.Mock
    10  }
    11  
    12  // InitProcessedIndex provides a mock function with given fields: defaultIndex
    13  func (_m *ConsumerProgress) InitProcessedIndex(defaultIndex uint64) error {
    14  	ret := _m.Called(defaultIndex)
    15  
    16  	var r0 error
    17  	if rf, ok := ret.Get(0).(func(uint64) error); ok {
    18  		r0 = rf(defaultIndex)
    19  	} else {
    20  		r0 = ret.Error(0)
    21  	}
    22  
    23  	return r0
    24  }
    25  
    26  // ProcessedIndex provides a mock function with given fields:
    27  func (_m *ConsumerProgress) ProcessedIndex() (uint64, error) {
    28  	ret := _m.Called()
    29  
    30  	var r0 uint64
    31  	var r1 error
    32  	if rf, ok := ret.Get(0).(func() (uint64, error)); ok {
    33  		return rf()
    34  	}
    35  	if rf, ok := ret.Get(0).(func() uint64); ok {
    36  		r0 = rf()
    37  	} else {
    38  		r0 = ret.Get(0).(uint64)
    39  	}
    40  
    41  	if rf, ok := ret.Get(1).(func() error); ok {
    42  		r1 = rf()
    43  	} else {
    44  		r1 = ret.Error(1)
    45  	}
    46  
    47  	return r0, r1
    48  }
    49  
    50  // SetProcessedIndex provides a mock function with given fields: processed
    51  func (_m *ConsumerProgress) SetProcessedIndex(processed uint64) error {
    52  	ret := _m.Called(processed)
    53  
    54  	var r0 error
    55  	if rf, ok := ret.Get(0).(func(uint64) error); ok {
    56  		r0 = rf(processed)
    57  	} else {
    58  		r0 = ret.Error(0)
    59  	}
    60  
    61  	return r0
    62  }
    63  
    64  type mockConstructorTestingTNewConsumerProgress interface {
    65  	mock.TestingT
    66  	Cleanup(func())
    67  }
    68  
    69  // NewConsumerProgress creates a new instance of ConsumerProgress. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    70  func NewConsumerProgress(t mockConstructorTestingTNewConsumerProgress) *ConsumerProgress {
    71  	mock := &ConsumerProgress{}
    72  	mock.Mock.Test(t)
    73  
    74  	t.Cleanup(func() { mock.AssertExpectations(t) })
    75  
    76  	return mock
    77  }