-
Notifications
You must be signed in to change notification settings - Fork 175
/
connection_factory.go
82 lines (66 loc) · 1.81 KB
/
connection_factory.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mock
import (
access "github.com/onflow/flow/protobuf/go/flow/access"
execution "github.com/onflow/flow/protobuf/go/flow/execution"
io "io"
mock "github.com/stretchr/testify/mock"
)
// ConnectionFactory is an autogenerated mock type for the ConnectionFactory type
type ConnectionFactory struct {
mock.Mock
}
// GetAccessAPIClient provides a mock function with given fields: address
func (_m *ConnectionFactory) GetAccessAPIClient(address string) (access.AccessAPIClient, io.Closer, error) {
ret := _m.Called(address)
var r0 access.AccessAPIClient
if rf, ok := ret.Get(0).(func(string) access.AccessAPIClient); ok {
r0 = rf(address)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(access.AccessAPIClient)
}
}
var r1 io.Closer
if rf, ok := ret.Get(1).(func(string) io.Closer); ok {
r1 = rf(address)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(io.Closer)
}
}
var r2 error
if rf, ok := ret.Get(2).(func(string) error); ok {
r2 = rf(address)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
// GetExecutionAPIClient provides a mock function with given fields: address
func (_m *ConnectionFactory) GetExecutionAPIClient(address string) (execution.ExecutionAPIClient, io.Closer, error) {
ret := _m.Called(address)
var r0 execution.ExecutionAPIClient
if rf, ok := ret.Get(0).(func(string) execution.ExecutionAPIClient); ok {
r0 = rf(address)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(execution.ExecutionAPIClient)
}
}
var r1 io.Closer
if rf, ok := ret.Get(1).(func(string) io.Closer); ok {
r1 = rf(address)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(io.Closer)
}
}
var r2 error
if rf, ok := ret.Get(2).(func(string) error); ok {
r2 = rf(address)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}