-
Notifications
You must be signed in to change notification settings - Fork 0
/
head_trackable.go
34 lines (26 loc) · 1.04 KB
/
head_trackable.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Code generated by mockery v2.38.0. DO NOT EDIT.
package mocks
import (
context "context"
types "github.com/O1MaGnUmO1/erinaceus-vrf/common/types"
mock "github.com/stretchr/testify/mock"
)
// HeadTrackable is an autogenerated mock type for the HeadTrackable type
type HeadTrackable[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
mock.Mock
}
// OnNewLongestChain provides a mock function with given fields: ctx, head
func (_m *HeadTrackable[H, BLOCK_HASH]) OnNewLongestChain(ctx context.Context, head H) {
_m.Called(ctx, head)
}
// NewHeadTrackable creates a new instance of HeadTrackable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewHeadTrackable[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable](t interface {
mock.TestingT
Cleanup(func())
}) *HeadTrackable[H, BLOCK_HASH] {
mock := &HeadTrackable[H, BLOCK_HASH]{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}