netfakes

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConn

type FakeConn struct {
	ReadStub func(b []byte) (n int, err error)

	WriteStub func(b []byte) (n int, err error)

	CloseStub func() error

	LocalAddrStub func() net.Addr

	RemoteAddrStub func() net.Addr

	SetDeadlineStub func(t time.Time) error

	SetReadDeadlineStub func(t time.Time) error

	SetWriteDeadlineStub func(t time.Time) error
	// contains filtered or unexported fields
}

func (*FakeConn) Close

func (fake *FakeConn) Close() error

func (*FakeConn) CloseCallCount

func (fake *FakeConn) CloseCallCount() int

func (*FakeConn) CloseReturns

func (fake *FakeConn) CloseReturns(result1 error)

func (*FakeConn) Invocations

func (fake *FakeConn) Invocations() map[string][][]interface{}

func (*FakeConn) LocalAddr

func (fake *FakeConn) LocalAddr() net.Addr

func (*FakeConn) LocalAddrCallCount

func (fake *FakeConn) LocalAddrCallCount() int

func (*FakeConn) LocalAddrReturns

func (fake *FakeConn) LocalAddrReturns(result1 net.Addr)

func (*FakeConn) Read

func (fake *FakeConn) Read(b []byte) (n int, err error)

func (*FakeConn) ReadArgsForCall

func (fake *FakeConn) ReadArgsForCall(i int) []byte

func (*FakeConn) ReadCallCount

func (fake *FakeConn) ReadCallCount() int

func (*FakeConn) ReadReturns

func (fake *FakeConn) ReadReturns(result1 int, result2 error)

func (*FakeConn) RemoteAddr

func (fake *FakeConn) RemoteAddr() net.Addr

func (*FakeConn) RemoteAddrCallCount

func (fake *FakeConn) RemoteAddrCallCount() int

func (*FakeConn) RemoteAddrReturns

func (fake *FakeConn) RemoteAddrReturns(result1 net.Addr)

func (*FakeConn) SetDeadline

func (fake *FakeConn) SetDeadline(t time.Time) error

func (*FakeConn) SetDeadlineArgsForCall

func (fake *FakeConn) SetDeadlineArgsForCall(i int) time.Time

func (*FakeConn) SetDeadlineCallCount

func (fake *FakeConn) SetDeadlineCallCount() int

func (*FakeConn) SetDeadlineReturns

func (fake *FakeConn) SetDeadlineReturns(result1 error)

func (*FakeConn) SetReadDeadline

func (fake *FakeConn) SetReadDeadline(t time.Time) error

func (*FakeConn) SetReadDeadlineArgsForCall

func (fake *FakeConn) SetReadDeadlineArgsForCall(i int) time.Time

func (*FakeConn) SetReadDeadlineCallCount

func (fake *FakeConn) SetReadDeadlineCallCount() int

func (*FakeConn) SetReadDeadlineReturns

func (fake *FakeConn) SetReadDeadlineReturns(result1 error)

func (*FakeConn) SetWriteDeadline

func (fake *FakeConn) SetWriteDeadline(t time.Time) error

func (*FakeConn) SetWriteDeadlineArgsForCall

func (fake *FakeConn) SetWriteDeadlineArgsForCall(i int) time.Time

func (*FakeConn) SetWriteDeadlineCallCount

func (fake *FakeConn) SetWriteDeadlineCallCount() int

func (*FakeConn) SetWriteDeadlineReturns

func (fake *FakeConn) SetWriteDeadlineReturns(result1 error)

func (*FakeConn) Write

func (fake *FakeConn) Write(b []byte) (n int, err error)

func (*FakeConn) WriteArgsForCall

func (fake *FakeConn) WriteArgsForCall(i int) []byte

func (*FakeConn) WriteCallCount

func (fake *FakeConn) WriteCallCount() int

func (*FakeConn) WriteReturns

func (fake *FakeConn) WriteReturns(result1 int, result2 error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL