forked from okx/xlayer-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_ethtxmanager.go
44 lines (33 loc) · 1.15 KB
/
mock_ethtxmanager.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
// Code generated by mockery v2.22.1. DO NOT EDIT.
package synchronizer
import (
context "context"
pgx "github.com/jackc/pgx/v4"
mock "github.com/stretchr/testify/mock"
)
// ethTxManagerMock is an autogenerated mock type for the ethTxManager type
type ethTxManagerMock struct {
mock.Mock
}
// Reorg provides a mock function with given fields: ctx, fromBlockNumber, dbTx
func (_m *ethTxManagerMock) Reorg(ctx context.Context, fromBlockNumber uint64, dbTx pgx.Tx) error {
ret := _m.Called(ctx, fromBlockNumber, dbTx)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, uint64, pgx.Tx) error); ok {
r0 = rf(ctx, fromBlockNumber, dbTx)
} else {
r0 = ret.Error(0)
}
return r0
}
type mockConstructorTestingTnewEthTxManagerMock interface {
mock.TestingT
Cleanup(func())
}
// newEthTxManagerMock creates a new instance of ethTxManagerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newEthTxManagerMock(t mockConstructorTestingTnewEthTxManagerMock) *ethTxManagerMock {
mock := ðTxManagerMock{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}