forked from yandex/pandora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialer.go
34 lines (28 loc) · 790 Bytes
/
dialer.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
// Code generated by mockery v1.0.0
package netmock
import "context"
import "github.com/stretchr/testify/mock"
import "net"
// Dialer is an autogenerated mock type for the Dialer type
type Dialer struct {
mock.Mock
}
// DialContext provides a mock function with given fields: ctx, _a1, addr
func (_m *Dialer) DialContext(ctx context.Context, _a1 string, addr string) (net.Conn, error) {
ret := _m.Called(ctx, _a1, addr)
var r0 net.Conn
if rf, ok := ret.Get(0).(func(context.Context, string, string) net.Conn); ok {
r0 = rf(ctx, _a1, addr)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(net.Conn)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
r1 = rf(ctx, _a1, addr)
} else {
r1 = ret.Error(1)
}
return r0, r1
}