forked from b2network/cdk-validium-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_datacommitteeclient.go
85 lines (67 loc) · 2.2 KB
/
mock_datacommitteeclient.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
73
74
75
76
77
78
79
80
81
82
83
84
85
// Code generated by mockery v2.22.1. DO NOT EDIT.
package synchronizer
import (
context "context"
common "github.com/ethereum/go-ethereum/common"
mock "github.com/stretchr/testify/mock"
sequence "github.com/0xPolygon/cdk-data-availability/sequence"
)
// dataCommitteeClientMock is an autogenerated mock type for the ClientInterface type
type dataCommitteeClientMock struct {
mock.Mock
}
// GetOffChainData provides a mock function with given fields: ctx, hash
func (_m *dataCommitteeClientMock) GetOffChainData(ctx context.Context, hash common.Hash) ([]byte, error) {
ret := _m.Called(ctx, hash)
var r0 []byte
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, common.Hash) ([]byte, error)); ok {
return rf(ctx, hash)
}
if rf, ok := ret.Get(0).(func(context.Context, common.Hash) []byte); ok {
r0 = rf(ctx, hash)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]byte)
}
}
if rf, ok := ret.Get(1).(func(context.Context, common.Hash) error); ok {
r1 = rf(ctx, hash)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SignSequence provides a mock function with given fields: signedSequence
func (_m *dataCommitteeClientMock) SignSequence(signedSequence sequence.SignedSequence) ([]byte, error) {
ret := _m.Called(signedSequence)
var r0 []byte
var r1 error
if rf, ok := ret.Get(0).(func(sequence.SignedSequence) ([]byte, error)); ok {
return rf(signedSequence)
}
if rf, ok := ret.Get(0).(func(sequence.SignedSequence) []byte); ok {
r0 = rf(signedSequence)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]byte)
}
}
if rf, ok := ret.Get(1).(func(sequence.SignedSequence) error); ok {
r1 = rf(signedSequence)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type mockConstructorTestingTnewDataCommitteeClientMock interface {
mock.TestingT
Cleanup(func())
}
// newDataCommitteeClientMock creates a new instance of dataCommitteeClientMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newDataCommitteeClientMock(t mockConstructorTestingTnewDataCommitteeClientMock) *dataCommitteeClientMock {
mock := &dataCommitteeClientMock{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}