mockbytes

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: BSD-3-Clause Imports: 3 Imported by: 15

Documentation

Index

Constants

View Source
const (
	MockTypeStandard = iota
)

Variables

View Source
var ErrShortRead = errors.New("Not enough random bytes")

Functions

This section is empty.

Types

type MockBytes

type MockBytes struct {
	io.Reader
	// contains filtered or unexported fields
}

func New

func New(i int, typ int) *MockBytes

func (*MockBytes) RandomBytes

func (m *MockBytes) RandomBytes(c int) ([]byte, error)

func (*MockBytes) SequentialBytes added in v0.0.7

func (m *MockBytes) SequentialBytes(c int) ([]byte, error)

func (*MockBytes) WithModulus added in v0.0.7

func (m *MockBytes) WithModulus(mod int) *MockBytes

Jump to

Keyboard shortcuts

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