forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_l1_rollup_consumer_interface.go
72 lines (57 loc) · 1.9 KB
/
mock_l1_rollup_consumer_interface.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Code generated by mockery v2.32.0. DO NOT EDIT.
package synchronizer
import (
context "context"
state "github.com/0xPolygonHermez/zkevm-node/state"
mock "github.com/stretchr/testify/mock"
)
// l1RollupConsumerInterfaceMock is an autogenerated mock type for the l1RollupConsumerInterface type
type l1RollupConsumerInterfaceMock struct {
mock.Mock
}
// GetLastEthBlockSynced provides a mock function with given fields:
func (_m *l1RollupConsumerInterfaceMock) GetLastEthBlockSynced() (state.Block, bool) {
ret := _m.Called()
var r0 state.Block
var r1 bool
if rf, ok := ret.Get(0).(func() (state.Block, bool)); ok {
return rf()
}
if rf, ok := ret.Get(0).(func() state.Block); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(state.Block)
}
if rf, ok := ret.Get(1).(func() bool); ok {
r1 = rf()
} else {
r1 = ret.Get(1).(bool)
}
return r0, r1
}
// Start provides a mock function with given fields: ctx, lastEthBlockSynced
func (_m *l1RollupConsumerInterfaceMock) Start(ctx context.Context, lastEthBlockSynced *state.Block) error {
ret := _m.Called(ctx, lastEthBlockSynced)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *state.Block) error); ok {
r0 = rf(ctx, lastEthBlockSynced)
} else {
r0 = ret.Error(0)
}
return r0
}
// StopAfterProcessChannelQueue provides a mock function with given fields:
func (_m *l1RollupConsumerInterfaceMock) StopAfterProcessChannelQueue() {
_m.Called()
}
// newL1RollupConsumerInterfaceMock creates a new instance of l1RollupConsumerInterfaceMock. 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 newL1RollupConsumerInterfaceMock(t interface {
mock.TestingT
Cleanup(func())
}) *l1RollupConsumerInterfaceMock {
mock := &l1RollupConsumerInterfaceMock{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}