mock

package
v0.27.0-sandboxnet Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts added in v0.22.4

type Accounts struct {
	mock.Mock
}

Accounts is an autogenerated mock type for the Accounts type

func NewAccounts added in v0.26.1

func NewAccounts(t NewAccountsT) *Accounts

NewAccounts creates a new instance of Accounts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Accounts) AllocateStorageIndex added in v0.22.4

func (_m *Accounts) AllocateStorageIndex(address flow.Address) (atree.StorageIndex, error)

AllocateStorageIndex provides a mock function with given fields: address

func (*Accounts) AppendPublicKey added in v0.22.4

func (_m *Accounts) AppendPublicKey(address flow.Address, key flow.AccountPublicKey) error

AppendPublicKey provides a mock function with given fields: address, key

func (*Accounts) CheckAccountNotFrozen added in v0.22.4

func (_m *Accounts) CheckAccountNotFrozen(address flow.Address) error

CheckAccountNotFrozen provides a mock function with given fields: address

func (*Accounts) ContractExists added in v0.26.0

func (_m *Accounts) ContractExists(contractName string, address flow.Address) (bool, error)

ContractExists provides a mock function with given fields: contractName, address

func (*Accounts) Create added in v0.22.4

func (_m *Accounts) Create(publicKeys []flow.AccountPublicKey, newAddress flow.Address) error

Create provides a mock function with given fields: publicKeys, newAddress

func (*Accounts) DeleteContract added in v0.22.4

func (_m *Accounts) DeleteContract(contractName string, address flow.Address) error

DeleteContract provides a mock function with given fields: contractName, address

func (*Accounts) Exists added in v0.22.4

func (_m *Accounts) Exists(address flow.Address) (bool, error)

Exists provides a mock function with given fields: address

func (*Accounts) Get added in v0.22.4

func (_m *Accounts) Get(address flow.Address) (*flow.Account, error)

Get provides a mock function with given fields: address

func (*Accounts) GetContract added in v0.22.4

func (_m *Accounts) GetContract(contractName string, address flow.Address) ([]byte, error)

GetContract provides a mock function with given fields: contractName, address

func (*Accounts) GetContractNames added in v0.22.4

func (_m *Accounts) GetContractNames(address flow.Address) ([]string, error)

GetContractNames provides a mock function with given fields: address

func (*Accounts) GetPublicKey added in v0.22.4

func (_m *Accounts) GetPublicKey(address flow.Address, keyIndex uint64) (flow.AccountPublicKey, error)

GetPublicKey provides a mock function with given fields: address, keyIndex

func (*Accounts) GetPublicKeyCount added in v0.22.4

func (_m *Accounts) GetPublicKeyCount(address flow.Address) (uint64, error)

GetPublicKeyCount provides a mock function with given fields: address

func (*Accounts) GetStorageUsed added in v0.22.4

func (_m *Accounts) GetStorageUsed(address flow.Address) (uint64, error)

GetStorageUsed provides a mock function with given fields: address

func (*Accounts) GetValue added in v0.22.4

func (_m *Accounts) GetValue(address flow.Address, key string) ([]byte, error)

GetValue provides a mock function with given fields: address, key

func (*Accounts) SetAccountFrozen added in v0.22.4

func (_m *Accounts) SetAccountFrozen(address flow.Address, frozen bool) error

SetAccountFrozen provides a mock function with given fields: address, frozen

func (*Accounts) SetContract added in v0.22.4

func (_m *Accounts) SetContract(contractName string, address flow.Address, contract []byte) error

SetContract provides a mock function with given fields: contractName, address, contract

func (*Accounts) SetPublicKey added in v0.22.4

func (_m *Accounts) SetPublicKey(address flow.Address, keyIndex uint64, publicKey flow.AccountPublicKey) ([]byte, error)

SetPublicKey provides a mock function with given fields: address, keyIndex, publicKey

func (*Accounts) SetValue added in v0.22.4

func (_m *Accounts) SetValue(address flow.Address, key string, value []byte) error

SetValue provides a mock function with given fields: address, key, value

type Ledger

type Ledger struct {
	mock.Mock
}

Ledger is an autogenerated mock type for the Ledger type

func NewLedger added in v0.26.1

func NewLedger(t NewLedgerT) *Ledger

NewLedger creates a new instance of Ledger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Ledger) Delete

func (_m *Ledger) Delete(owner string, key string) error

Delete provides a mock function with given fields: owner, key

func (*Ledger) Get

func (_m *Ledger) Get(owner string, key string) ([]byte, error)

Get provides a mock function with given fields: owner, key

func (*Ledger) Set

func (_m *Ledger) Set(owner string, key string, value []byte) error

Set provides a mock function with given fields: owner, key, value

func (*Ledger) Touch

func (_m *Ledger) Touch(owner string, key string) error

Touch provides a mock function with given fields: owner, key

type NewAccountsT

type NewAccountsT interface {
	mock.TestingT
	Cleanup(func())
}

type NewLedgerT

type NewLedgerT interface {
	mock.TestingT
	Cleanup(func())
}

type NewStateOptionT

type NewStateOptionT interface {
	mock.TestingT
	Cleanup(func())
}

type NewViewT

type NewViewT interface {
	mock.TestingT
	Cleanup(func())
}

type StateOption added in v0.26.1

type StateOption struct {
	mock.Mock
}

StateOption is an autogenerated mock type for the StateOption type

func NewStateOption added in v0.26.1

func NewStateOption(t NewStateOptionT) *StateOption

NewStateOption creates a new instance of StateOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StateOption) Execute added in v0.26.1

func (_m *StateOption) Execute(st *state.State) *state.State

Execute provides a mock function with given fields: st

type View

type View struct {
	mock.Mock
}

View is an autogenerated mock type for the View type

func NewView added in v0.26.1

func NewView(t NewViewT) *View

NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*View) AllRegisters

func (_m *View) AllRegisters() []flow.RegisterID

AllRegisters provides a mock function with given fields:

func (*View) Delete

func (_m *View) Delete(owner string, key string) error

Delete provides a mock function with given fields: owner, key

func (*View) DropDelta

func (_m *View) DropDelta()

DropDelta provides a mock function with given fields:

func (*View) Get

func (_m *View) Get(owner string, key string) ([]byte, error)

Get provides a mock function with given fields: owner, key

func (*View) MergeView

func (_m *View) MergeView(child state.View) error

MergeView provides a mock function with given fields: child

func (*View) NewChild

func (_m *View) NewChild() state.View

NewChild provides a mock function with given fields:

func (*View) RegisterUpdates

func (_m *View) RegisterUpdates() ([]flow.RegisterID, [][]byte)

RegisterUpdates provides a mock function with given fields:

func (*View) Set

func (_m *View) Set(owner string, key string, value []byte) error

Set provides a mock function with given fields: owner, key, value

func (*View) Touch

func (_m *View) Touch(owner string, key string) error

Touch provides a mock function with given fields: owner, key

Jump to

Keyboard shortcuts

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