mock

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadDataMock = errors.New("err bad data mock")

Functions

This section is empty.

Types

type BadDataMock

type BadDataMock struct{}

func (*BadDataMock) Marshal

func (d *BadDataMock) Marshal() ([]byte, error)

func (*BadDataMock) Reset added in v1.1.0

func (d *BadDataMock) Reset()

func (*BadDataMock) Unmarshal

func (d *BadDataMock) Unmarshal([]byte) error

type DataMock

type DataMock struct{ Data []byte }

func (*DataMock) Marshal

func (d *DataMock) Marshal() ([]byte, error)

func (*DataMock) Reset added in v1.1.0

func (d *DataMock) Reset()

func (*DataMock) Unmarshal

func (d *DataMock) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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