github.com/koko1123/flow-go-1@v0.29.6/storage/mock/consumer_progress.go (about)

     1  // Code generated by mockery v2.13.1. 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  	if rf, ok := ret.Get(0).(func() uint64); ok {
    32  		r0 = rf()
    33  	} else {
    34  		r0 = ret.Get(0).(uint64)
    35  	}
    36  
    37  	var r1 error
    38  	if rf, ok := ret.Get(1).(func() error); ok {
    39  		r1 = rf()
    40  	} else {
    41  		r1 = ret.Error(1)
    42  	}
    43  
    44  	return r0, r1
    45  }
    46  
    47  // SetProcessedIndex provides a mock function with given fields: processed
    48  func (_m *ConsumerProgress) SetProcessedIndex(processed uint64) error {
    49  	ret := _m.Called(processed)
    50  
    51  	var r0 error
    52  	if rf, ok := ret.Get(0).(func(uint64) error); ok {
    53  		r0 = rf(processed)
    54  	} else {
    55  		r0 = ret.Error(0)
    56  	}
    57  
    58  	return r0
    59  }
    60  
    61  type mockConstructorTestingTNewConsumerProgress interface {
    62  	mock.TestingT
    63  	Cleanup(func())
    64  }
    65  
    66  // 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.
    67  func NewConsumerProgress(t mockConstructorTestingTNewConsumerProgress) *ConsumerProgress {
    68  	mock := &ConsumerProgress{}
    69  	mock.Mock.Test(t)
    70  
    71  	t.Cleanup(func() { mock.AssertExpectations(t) })
    72  
    73  	return mock
    74  }