github.com/koko1123/flow-go-1@v0.29.6/state/protocol/events/mock/heights.go (about)

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