github.com/koko1123/flow-go-1@v0.29.6/module/mempool/mock/chunk_request_history_updater_func.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mempool
     4  
     5  import (
     6  	time "time"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // ChunkRequestHistoryUpdaterFunc is an autogenerated mock type for the ChunkRequestHistoryUpdaterFunc type
    12  type ChunkRequestHistoryUpdaterFunc struct {
    13  	mock.Mock
    14  }
    15  
    16  // Execute provides a mock function with given fields: _a0, _a1
    17  func (_m *ChunkRequestHistoryUpdaterFunc) Execute(_a0 uint64, _a1 time.Duration) (uint64, time.Duration, bool) {
    18  	ret := _m.Called(_a0, _a1)
    19  
    20  	var r0 uint64
    21  	if rf, ok := ret.Get(0).(func(uint64, time.Duration) uint64); ok {
    22  		r0 = rf(_a0, _a1)
    23  	} else {
    24  		r0 = ret.Get(0).(uint64)
    25  	}
    26  
    27  	var r1 time.Duration
    28  	if rf, ok := ret.Get(1).(func(uint64, time.Duration) time.Duration); ok {
    29  		r1 = rf(_a0, _a1)
    30  	} else {
    31  		r1 = ret.Get(1).(time.Duration)
    32  	}
    33  
    34  	var r2 bool
    35  	if rf, ok := ret.Get(2).(func(uint64, time.Duration) bool); ok {
    36  		r2 = rf(_a0, _a1)
    37  	} else {
    38  		r2 = ret.Get(2).(bool)
    39  	}
    40  
    41  	return r0, r1, r2
    42  }
    43  
    44  type mockConstructorTestingTNewChunkRequestHistoryUpdaterFunc interface {
    45  	mock.TestingT
    46  	Cleanup(func())
    47  }
    48  
    49  // NewChunkRequestHistoryUpdaterFunc creates a new instance of ChunkRequestHistoryUpdaterFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    50  func NewChunkRequestHistoryUpdaterFunc(t mockConstructorTestingTNewChunkRequestHistoryUpdaterFunc) *ChunkRequestHistoryUpdaterFunc {
    51  	mock := &ChunkRequestHistoryUpdaterFunc{}
    52  	mock.Mock.Test(t)
    53  
    54  	t.Cleanup(func() { mock.AssertExpectations(t) })
    55  
    56  	return mock
    57  }