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

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Workerpool is an autogenerated mock type for the Workerpool type
     8  type Workerpool struct {
     9  	mock.Mock
    10  }
    11  
    12  // StopWait provides a mock function with given fields:
    13  func (_m *Workerpool) StopWait() {
    14  	_m.Called()
    15  }
    16  
    17  // Submit provides a mock function with given fields: task
    18  func (_m *Workerpool) Submit(task func()) {
    19  	_m.Called(task)
    20  }
    21  
    22  type mockConstructorTestingTNewWorkerpool interface {
    23  	mock.TestingT
    24  	Cleanup(func())
    25  }
    26  
    27  // NewWorkerpool creates a new instance of Workerpool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    28  func NewWorkerpool(t mockConstructorTestingTNewWorkerpool) *Workerpool {
    29  	mock := &Workerpool{}
    30  	mock.Mock.Test(t)
    31  
    32  	t.Cleanup(func() { mock.AssertExpectations(t) })
    33  
    34  	return mock
    35  }