github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/common/follower/mock/compliance_core.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	flow "github.com/onflow/flow-go/model/flow"
     7  
     8  	irrecoverable "github.com/onflow/flow-go/module/irrecoverable"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  )
    12  
    13  // ComplianceCore is an autogenerated mock type for the complianceCore type
    14  type ComplianceCore struct {
    15  	mock.Mock
    16  }
    17  
    18  // Done provides a mock function with given fields:
    19  func (_m *ComplianceCore) 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  // OnBlockRange provides a mock function with given fields: originID, connectedRange
    35  func (_m *ComplianceCore) OnBlockRange(originID flow.Identifier, connectedRange []*flow.Block) error {
    36  	ret := _m.Called(originID, connectedRange)
    37  
    38  	var r0 error
    39  	if rf, ok := ret.Get(0).(func(flow.Identifier, []*flow.Block) error); ok {
    40  		r0 = rf(originID, connectedRange)
    41  	} else {
    42  		r0 = ret.Error(0)
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  // OnFinalizedBlock provides a mock function with given fields: finalized
    49  func (_m *ComplianceCore) OnFinalizedBlock(finalized *flow.Header) {
    50  	_m.Called(finalized)
    51  }
    52  
    53  // Ready provides a mock function with given fields:
    54  func (_m *ComplianceCore) Ready() <-chan struct{} {
    55  	ret := _m.Called()
    56  
    57  	var r0 <-chan struct{}
    58  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
    59  		r0 = rf()
    60  	} else {
    61  		if ret.Get(0) != nil {
    62  			r0 = ret.Get(0).(<-chan struct{})
    63  		}
    64  	}
    65  
    66  	return r0
    67  }
    68  
    69  // Start provides a mock function with given fields: _a0
    70  func (_m *ComplianceCore) Start(_a0 irrecoverable.SignalerContext) {
    71  	_m.Called(_a0)
    72  }
    73  
    74  type mockConstructorTestingTNewComplianceCore interface {
    75  	mock.TestingT
    76  	Cleanup(func())
    77  }
    78  
    79  // NewComplianceCore creates a new instance of ComplianceCore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    80  func NewComplianceCore(t mockConstructorTestingTNewComplianceCore) *ComplianceCore {
    81  	mock := &ComplianceCore{}
    82  	mock.Mock.Test(t)
    83  
    84  	t.Cleanup(func() { mock.AssertExpectations(t) })
    85  
    86  	return mock
    87  }