mocks

package
v0.6.1-0...-c79f37a Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

To generate mocks, run the following command:

go get github.com/vektra/mockery/.../
cd sdk
mockery -all -recursive -keeptree

If will generate mocks in sdk folder. After that you can copy it to mocks folder.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetId

type AssetId struct {
	mock.Mock
}

AssetId is an autogenerated mock type for the AssetId type

func (*AssetId) Equals

func (_m *AssetId) Equals(_a0 sdk.AssetId) (bool, error)

Equals provides a mock function with given fields: _a0

func (*AssetId) Id

func (_m *AssetId) Id() uint64

Id provides a mock function with given fields:

func (*AssetId) String

func (_m *AssetId) String() string

String provides a mock function with given fields:

func (*AssetId) Type

func (_m *AssetId) Type() sdk.AssetIdType

Type provides a mock function with given fields:

type BlockMapper

type BlockMapper struct {
	mock.Mock
}

BlockMapper is an autogenerated mock type for the BlockMapper type

func (*BlockMapper) MapBlock

func (_m *BlockMapper) MapBlock(m []byte) (*sdk.BlockInfo, error)

MapBlock provides a mock function with given fields: m

type ConfirmedAddedMapper

type ConfirmedAddedMapper struct {
	mock.Mock
}

ConfirmedAddedMapper is an autogenerated mock type for the ConfirmedAddedMapper type

func (*ConfirmedAddedMapper) MapConfirmedAdded

func (_m *ConfirmedAddedMapper) MapConfirmedAdded(m []byte) (sdk.Transaction, error)

MapConfirmedAdded provides a mock function with given fields: m

type CosignatureMapper

type CosignatureMapper struct {
	mock.Mock
}

CosignatureMapper is an autogenerated mock type for the CosignatureMapper type

func (*CosignatureMapper) MapCosignature

func (_m *CosignatureMapper) MapCosignature(m []byte) (*sdk.SignerInfo, error)

MapCosignature provides a mock function with given fields: m

type DriveStateMapper

type DriveStateMapper struct {
	mock.Mock
}

DriveStateMapper is an autogenerated mock type for the DriveStateMapper type

func (*DriveStateMapper) MapDriveState

func (_m *DriveStateMapper) MapDriveState(m []byte) (*sdk.DriveStateInfo, error)

MapDriveState provides a mock function with given fields: m

type Message

type Message struct {
	mock.Mock
}

Message is an autogenerated mock type for the Message type

func (*Message) Payload

func (_m *Message) Payload() []byte

Payload provides a mock function with given fields:

func (*Message) String

func (_m *Message) String() string

String provides a mock function with given fields:

func (*Message) Type

func (_m *Message) Type() sdk.MessageType

Type provides a mock function with given fields:

type PartialAddedMapper

type PartialAddedMapper struct {
	mock.Mock
}

PartialAddedMapper is an autogenerated mock type for the PartialAddedMapper type

func (*PartialAddedMapper) MapPartialAdded

func (_m *PartialAddedMapper) MapPartialAdded(m []byte) (*sdk.AggregateTransaction, error)

MapPartialAdded provides a mock function with given fields: m

type PartialRemovedMapper

type PartialRemovedMapper struct {
	mock.Mock
}

PartialRemovedMapper is an autogenerated mock type for the PartialRemovedMapper type

func (*PartialRemovedMapper) MapPartialRemoved

func (_m *PartialRemovedMapper) MapPartialRemoved(m []byte) (*sdk.PartialRemovedInfo, error)

MapPartialRemoved provides a mock function with given fields: m

type StatusMapper

type StatusMapper struct {
	mock.Mock
}

StatusMapper is an autogenerated mock type for the StatusMapper type

func (*StatusMapper) MapStatus

func (_m *StatusMapper) MapStatus(m []byte) (*sdk.StatusInfo, error)

MapStatus provides a mock function with given fields: m

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func (*Transaction) Bytes

func (_m *Transaction) Bytes() ([]byte, error)

Bytes provides a mock function with given fields:

func (*Transaction) GetAbstractTransaction

func (_m *Transaction) GetAbstractTransaction() *sdk.AbstractTransaction

GetAbstractTransaction provides a mock function with given fields:

func (*Transaction) Size

func (_m *Transaction) Size() int

Size provides a mock function with given fields:

func (*Transaction) String

func (_m *Transaction) String() string

String provides a mock function with given fields:

type UnconfirmedAddedMapper

type UnconfirmedAddedMapper struct {
	mock.Mock
}

UnconfirmedAddedMapper is an autogenerated mock type for the UnconfirmedAddedMapper type

func (*UnconfirmedAddedMapper) MapUnconfirmedAdded

func (_m *UnconfirmedAddedMapper) MapUnconfirmedAdded(m []byte) (sdk.Transaction, error)

MapUnconfirmedAdded provides a mock function with given fields: m

type UnconfirmedRemovedMapper

type UnconfirmedRemovedMapper struct {
	mock.Mock
}

UnconfirmedRemovedMapper is an autogenerated mock type for the UnconfirmedRemovedMapper type

func (*UnconfirmedRemovedMapper) MapUnconfirmedRemoved

func (_m *UnconfirmedRemovedMapper) MapUnconfirmedRemoved(m []byte) (*sdk.UnconfirmedRemoved, error)

MapUnconfirmedRemoved provides a mock function with given fields: m

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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