Documentation
¶
Index ¶
- type Fake
- func (fake *Fake) Invocations() map[string][][]interface{}
- func (fake *Fake) Listen(protocol string, laddr string) (net.Listener, error)
- func (fake *Fake) ListenArgsForCall(i int) (string, string)
- func (fake *Fake) ListenCallCount() int
- func (fake *Fake) ListenReturns(result1 net.Listener, result2 error)
- type ListenerFake
- func (fake *ListenerFake) Accept() (net.Conn, error)
- func (fake *ListenerFake) AcceptCallCount() int
- func (fake *ListenerFake) AcceptReturns(result1 net.Conn, result2 error)
- func (fake *ListenerFake) Addr() net.Addr
- func (fake *ListenerFake) AddrCallCount() int
- func (fake *ListenerFake) AddrReturns(result1 net.Addr)
- func (fake *ListenerFake) Close() error
- func (fake *ListenerFake) CloseCallCount() int
- func (fake *ListenerFake) CloseReturns(result1 error)
- func (fake *ListenerFake) Invocations() map[string][][]interface{}
- type Net
- type Real
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
ListenStub func(protocol, laddr string) (net.Listener, error)
// contains filtered or unexported fields
}
Fake ...
func (*Fake) Invocations ¶
Invocations ...
func (*Fake) ListenArgsForCall ¶
ListenArgsForCall ...
type ListenerFake ¶
type ListenerFake struct {
AcceptStub func() (net.Conn, error)
CloseStub func() error
AddrStub func() net.Addr
// contains filtered or unexported fields
}
ListenerFake ...
func NewListenerFake ¶
func NewListenerFake() *ListenerFake
NewListenerFake is the preferred way to initialise a ListenerFake
func (*ListenerFake) AcceptCallCount ¶
func (fake *ListenerFake) AcceptCallCount() int
AcceptCallCount ...
func (*ListenerFake) AcceptReturns ¶
func (fake *ListenerFake) AcceptReturns(result1 net.Conn, result2 error)
AcceptReturns ...
func (*ListenerFake) AddrCallCount ¶
func (fake *ListenerFake) AddrCallCount() int
AddrCallCount ...
func (*ListenerFake) AddrReturns ¶
func (fake *ListenerFake) AddrReturns(result1 net.Addr)
AddrReturns ...
func (*ListenerFake) CloseCallCount ¶
func (fake *ListenerFake) CloseCallCount() int
CloseCallCount ...
func (*ListenerFake) CloseReturns ¶
func (fake *ListenerFake) CloseReturns(result1 error)
CloseReturns ...
func (*ListenerFake) Invocations ¶
func (fake *ListenerFake) Invocations() map[string][][]interface{}
Invocations ...
Click to show internal directories.
Click to hide internal directories.