testutils

package
v0.0.0-...-87a8fe7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: LGPL-2.1 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eventually

func Eventually(f func() bool) bool

Runs f at 10ms intervals until it returns True. Gives up after 100 attempts.

Types

type DummyConn

type DummyConn struct{}

func (*DummyConn) Close

func (c *DummyConn) Close() error

func (*DummyConn) LocalAddr

func (c *DummyConn) LocalAddr() net.Addr

func (*DummyConn) Read

func (c *DummyConn) Read(b []byte) (n int, err error)

func (*DummyConn) RemoteAddr

func (c *DummyConn) RemoteAddr() net.Addr

func (*DummyConn) SetDeadline

func (c *DummyConn) SetDeadline(t time.Time) error

func (*DummyConn) SetReadDeadline

func (c *DummyConn) SetReadDeadline(t time.Time) error

func (*DummyConn) SetWriteDeadline

func (c *DummyConn) SetWriteDeadline(t time.Time) error

func (*DummyConn) Write

func (c *DummyConn) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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