github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/consensus/hotstuff/mocks/proposal_duration_provider.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	flow "github.com/onflow/flow-go/model/flow"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  
    10  	time "time"
    11  )
    12  
    13  // ProposalDurationProvider is an autogenerated mock type for the ProposalDurationProvider type
    14  type ProposalDurationProvider struct {
    15  	mock.Mock
    16  }
    17  
    18  // TargetPublicationTime provides a mock function with given fields: proposalView, timeViewEntered, parentBlockId
    19  func (_m *ProposalDurationProvider) TargetPublicationTime(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time {
    20  	ret := _m.Called(proposalView, timeViewEntered, parentBlockId)
    21  
    22  	var r0 time.Time
    23  	if rf, ok := ret.Get(0).(func(uint64, time.Time, flow.Identifier) time.Time); ok {
    24  		r0 = rf(proposalView, timeViewEntered, parentBlockId)
    25  	} else {
    26  		r0 = ret.Get(0).(time.Time)
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  type mockConstructorTestingTNewProposalDurationProvider interface {
    33  	mock.TestingT
    34  	Cleanup(func())
    35  }
    36  
    37  // NewProposalDurationProvider creates a new instance of ProposalDurationProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    38  func NewProposalDurationProvider(t mockConstructorTestingTNewProposalDurationProvider) *ProposalDurationProvider {
    39  	mock := &ProposalDurationProvider{}
    40  	mock.Mock.Test(t)
    41  
    42  	t.Cleanup(func() { mock.AssertExpectations(t) })
    43  
    44  	return mock
    45  }