mocks

package
v0.0.0-...-27f5e65 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks includes mocks to simplify testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

Mock of Conn interface

func NewConn

func NewConn() (conn *Conn)

func (*Conn) Close

func (m *Conn) Close() error

func (*Conn) LocalAddr

func (m *Conn) LocalAddr() net.Addr

func (*Conn) Read

func (m *Conn) Read(buffer []byte) (int, error)

func (*Conn) Receive

func (m *Conn) Receive(n int, err error) []byte

func (*Conn) RemoteAddr

func (m *Conn) RemoteAddr() net.Addr

func (*Conn) ResetDeath

func (m *Conn) ResetDeath()

func (*Conn) Send

func (m *Conn) Send(buffer []byte, n int, err error)

func (*Conn) SetDeadline

func (m *Conn) SetDeadline(_param0 time.Time) error

func (*Conn) SetReadDeadline

func (m *Conn) SetReadDeadline(_param0 time.Time) error

func (*Conn) SetWriteDeadline

func (m *Conn) SetWriteDeadline(_param0 time.Time) error

func (*Conn) WaitForDeath

func (m *Conn) WaitForDeath()

func (*Conn) Write

func (m *Conn) Write(written []byte) (int, error)

type IOReturn

type IOReturn struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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