/
handler.go
58 lines (44 loc) · 1.3 KB
/
handler.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
54
55
56
57
58
// Code generated by mockery v1.0.0. DO NOT EDIT.
package syncer
import (
context "context"
mock "github.com/stretchr/testify/mock"
types "github.com/klaytn/rosetta-sdk-go-klaytn/types"
)
// Handler is an autogenerated mock type for the Handler type
type Handler struct {
mock.Mock
}
// BlockAdded provides a mock function with given fields: ctx, block
func (_m *Handler) BlockAdded(ctx context.Context, block *types.Block) error {
ret := _m.Called(ctx, block)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *types.Block) error); ok {
r0 = rf(ctx, block)
} else {
r0 = ret.Error(0)
}
return r0
}
// BlockRemoved provides a mock function with given fields: ctx, block
func (_m *Handler) BlockRemoved(ctx context.Context, block *types.BlockIdentifier) error {
ret := _m.Called(ctx, block)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *types.BlockIdentifier) error); ok {
r0 = rf(ctx, block)
} else {
r0 = ret.Error(0)
}
return r0
}
// BlockSeen provides a mock function with given fields: ctx, block
func (_m *Handler) BlockSeen(ctx context.Context, block *types.Block) error {
ret := _m.Called(ctx, block)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *types.Block) error); ok {
r0 = rf(ctx, block)
} else {
r0 = ret.Error(0)
}
return r0
}