fake_net

package
v0.0.0-...-b5002bc Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

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) 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)

type FakeListener

type FakeListener struct {
	AcceptStub func() (c net.Conn, err error)

	CloseStub func() error

	AddrStub func() net.Addr
	// contains filtered or unexported fields
}

func (*FakeListener) Accept

func (fake *FakeListener) Accept() (c net.Conn, err error)

func (*FakeListener) AcceptCallCount

func (fake *FakeListener) AcceptCallCount() int

func (*FakeListener) AcceptReturns

func (fake *FakeListener) AcceptReturns(result1 net.Conn, result2 error)

func (*FakeListener) Addr

func (fake *FakeListener) Addr() net.Addr

func (*FakeListener) AddrCallCount

func (fake *FakeListener) AddrCallCount() int

func (*FakeListener) AddrReturns

func (fake *FakeListener) AddrReturns(result1 net.Addr)

func (*FakeListener) Close

func (fake *FakeListener) Close() error

func (*FakeListener) CloseCallCount

func (fake *FakeListener) CloseCallCount() int

func (*FakeListener) CloseReturns

func (fake *FakeListener) CloseReturns(result1 error)

Jump to

Keyboard shortcuts

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