fakes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConn

type FakeConn struct {
	W io.WriteCloser
	R io.ReadCloser
}

FakeConn is a fake i2c/driver.Conn with buffers that we can inspect.

func (*FakeConn) Close

func (f *FakeConn) Close() error

func (*FakeConn) Tx

func (f *FakeConn) Tx(w, r []byte) error

type FakeOpener

type FakeOpener struct {
	W io.WriteCloser
	R io.ReadCloser
}

FakeOpener is a fake i2c/driver.Opener with buffers that we can inspect.

func (*FakeOpener) Open

func (f *FakeOpener) Open(addr int, tenbit bool) (driver.Conn, error)

Jump to

Keyboard shortcuts

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