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

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