-
Notifications
You must be signed in to change notification settings - Fork 0
/
communicator.go
44 lines (35 loc) · 1.1 KB
/
communicator.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 v1.0.0. DO NOT EDIT.
package mocks
import cluster "deepchain/orderer/common/cluster"
import mock "github.com/stretchr/testify/mock"
// Communicator is an autogenerated mock type for the Communicator type
type Communicator struct {
mock.Mock
}
// Configure provides a mock function with given fields: channel, members
func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode) {
_m.Called(channel, members)
}
// Remote provides a mock function with given fields: channel, id
func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error) {
ret := _m.Called(channel, id)
var r0 *cluster.RemoteContext
if rf, ok := ret.Get(0).(func(string, uint64) *cluster.RemoteContext); ok {
r0 = rf(channel, id)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*cluster.RemoteContext)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, uint64) error); ok {
r1 = rf(channel, id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Shutdown provides a mock function with given fields:
func (_m *Communicator) Shutdown() {
_m.Called()
}