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

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	irrecoverable "github.com/onflow/flow-go/module/irrecoverable"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	model "github.com/onflow/flow-go/consensus/hotstuff/model"
    10  )
    11  
    12  // TimeoutAggregator is an autogenerated mock type for the TimeoutAggregator type
    13  type TimeoutAggregator struct {
    14  	mock.Mock
    15  }
    16  
    17  // AddTimeout provides a mock function with given fields: timeoutObject
    18  func (_m *TimeoutAggregator) AddTimeout(timeoutObject *model.TimeoutObject) {
    19  	_m.Called(timeoutObject)
    20  }
    21  
    22  // Done provides a mock function with given fields:
    23  func (_m *TimeoutAggregator) Done() <-chan struct{} {
    24  	ret := _m.Called()
    25  
    26  	var r0 <-chan struct{}
    27  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
    28  		r0 = rf()
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(<-chan struct{})
    32  		}
    33  	}
    34  
    35  	return r0
    36  }
    37  
    38  // PruneUpToView provides a mock function with given fields: lowestRetainedView
    39  func (_m *TimeoutAggregator) PruneUpToView(lowestRetainedView uint64) {
    40  	_m.Called(lowestRetainedView)
    41  }
    42  
    43  // Ready provides a mock function with given fields:
    44  func (_m *TimeoutAggregator) Ready() <-chan struct{} {
    45  	ret := _m.Called()
    46  
    47  	var r0 <-chan struct{}
    48  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
    49  		r0 = rf()
    50  	} else {
    51  		if ret.Get(0) != nil {
    52  			r0 = ret.Get(0).(<-chan struct{})
    53  		}
    54  	}
    55  
    56  	return r0
    57  }
    58  
    59  // Start provides a mock function with given fields: _a0
    60  func (_m *TimeoutAggregator) Start(_a0 irrecoverable.SignalerContext) {
    61  	_m.Called(_a0)
    62  }
    63  
    64  type mockConstructorTestingTNewTimeoutAggregator interface {
    65  	mock.TestingT
    66  	Cleanup(func())
    67  }
    68  
    69  // NewTimeoutAggregator creates a new instance of TimeoutAggregator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    70  func NewTimeoutAggregator(t mockConstructorTestingTNewTimeoutAggregator) *TimeoutAggregator {
    71  	mock := &TimeoutAggregator{}
    72  	mock.Mock.Test(t)
    73  
    74  	t.Cleanup(func() { mock.AssertExpectations(t) })
    75  
    76  	return mock
    77  }