mock

package
v0.25.14-cadence-v0.23... Latest Latest
Warning

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

Go to latest
Published: May 27, 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 (*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) 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 (*Ledger) Delete

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

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

func (*Ledger) Get

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

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

func (*Ledger) Set

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

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

func (*Ledger) Touch

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

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

type View

type View struct {
	mock.Mock
}

View is an autogenerated mock type for the View type

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, controller string, key string) error

Delete provides a mock function with given fields: owner, controller, 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, controller string, key string) ([]byte, error)

Get provides a mock function with given fields: owner, controller, 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, controller string, key string, value []byte) error

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

func (*View) Touch

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

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

Jump to

Keyboard shortcuts

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