-
Notifications
You must be signed in to change notification settings - Fork 178
/
chain_sync_metrics.go
53 lines (41 loc) · 1.67 KB
/
chain_sync_metrics.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Code generated by mockery v2.13.1. DO NOT EDIT.
package mock
import (
chainsync "github.com/onflow/flow-go/model/chainsync"
mock "github.com/stretchr/testify/mock"
)
// ChainSyncMetrics is an autogenerated mock type for the ChainSyncMetrics type
type ChainSyncMetrics struct {
mock.Mock
}
// BatchRequested provides a mock function with given fields: batch
func (_m *ChainSyncMetrics) BatchRequested(batch chainsync.Batch) {
_m.Called(batch)
}
// PrunedBlockByHeight provides a mock function with given fields: status
func (_m *ChainSyncMetrics) PrunedBlockByHeight(status *chainsync.Status) {
_m.Called(status)
}
// PrunedBlockById provides a mock function with given fields: status
func (_m *ChainSyncMetrics) PrunedBlockById(status *chainsync.Status) {
_m.Called(status)
}
// PrunedBlocks provides a mock function with given fields: totalByHeight, totalById, storedByHeight, storedById
func (_m *ChainSyncMetrics) PrunedBlocks(totalByHeight int, totalById int, storedByHeight int, storedById int) {
_m.Called(totalByHeight, totalById, storedByHeight, storedById)
}
// RangeRequested provides a mock function with given fields: ran
func (_m *ChainSyncMetrics) RangeRequested(ran chainsync.Range) {
_m.Called(ran)
}
type mockConstructorTestingTNewChainSyncMetrics interface {
mock.TestingT
Cleanup(func())
}
// NewChainSyncMetrics creates a new instance of ChainSyncMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewChainSyncMetrics(t mockConstructorTestingTNewChainSyncMetrics) *ChainSyncMetrics {
mock := &ChainSyncMetrics{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}