github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/mocks/event_loop.go (about)

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