Documentation ¶
Index ¶
- type AddressState
- type Blocks
- type Enviornment
- func (_m *Enviornment) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, ...) (*runtime.AccountKey, error)
- func (_m *Enviornment) AddEncodedAccountKey(address common.Address, publicKey []byte) error
- func (_m *Enviornment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
- func (_m *Enviornment) Context() *fvm.Context
- func (_m *Enviornment) CreateAccount(payer common.Address) (common.Address, error)
- func (_m *Enviornment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)
- func (_m *Enviornment) EmitEvent(_a0 cadence.Event) error
- func (_m *Enviornment) GenerateUUID() (uint64, error)
- func (_m *Enviornment) GetAccountAvailableBalance(address common.Address) (uint64, error)
- func (_m *Enviornment) GetAccountBalance(address common.Address) (uint64, error)
- func (_m *Enviornment) GetAccountContractCode(address common.Address, name string) ([]byte, error)
- func (_m *Enviornment) GetAccountContractNames(address common.Address) ([]string, error)
- func (_m *Enviornment) GetAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
- func (_m *Enviornment) GetBlockAtHeight(height uint64) (runtime.Block, bool, error)
- func (_m *Enviornment) GetCode(location common.Location) ([]byte, error)
- func (_m *Enviornment) GetComputationLimit() uint64
- func (_m *Enviornment) GetCurrentBlockHeight() (uint64, error)
- func (_m *Enviornment) GetProgram(_a0 common.Location) (*interpreter.Program, error)
- func (_m *Enviornment) GetSigningAccounts() ([]common.Address, error)
- func (_m *Enviornment) GetStorageCapacity(address common.Address) (uint64, error)
- func (_m *Enviornment) GetStorageUsed(address common.Address) (uint64, error)
- func (_m *Enviornment) GetValue(owner []byte, key []byte) ([]byte, error)
- func (_m *Enviornment) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
- func (_m *Enviornment) ImplementationDebugLog(message string) error
- func (_m *Enviornment) ProgramLog(_a0 string) error
- func (_m *Enviornment) RemoveAccountContractCode(address common.Address, name string) error
- func (_m *Enviornment) ResolveLocation(identifiers []ast.Identifier, location common.Location) ([]sema.ResolvedLocation, error)
- func (_m *Enviornment) RevokeAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
- func (_m *Enviornment) RevokeEncodedAccountKey(address common.Address, index int) ([]byte, error)
- func (_m *Enviornment) SetComputationUsed(used uint64) error
- func (_m *Enviornment) SetProgram(_a0 common.Location, _a1 *interpreter.Program) error
- func (_m *Enviornment) SetValue(owner []byte, key []byte, value []byte) error
- func (_m *Enviornment) UnsafeRandom() (uint64, error)
- func (_m *Enviornment) UpdateAccountContractCode(address common.Address, name string, code []byte) error
- func (_m *Enviornment) VM() *fvm.VirtualMachine
- func (_m *Enviornment) ValidatePublicKey(key *runtime.PublicKey) (bool, error)
- func (_m *Enviornment) ValueExists(owner []byte, key []byte) (bool, error)
- func (_m *Enviornment) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, ...) (bool, error)
- type Environment
- func (_m *Environment) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, ...) (*runtime.AccountKey, error)
- func (_m *Environment) AddEncodedAccountKey(address common.Address, publicKey []byte) error
- func (_m *Environment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
- func (_m *Environment) Context() *fvm.Context
- func (_m *Environment) CreateAccount(payer common.Address) (common.Address, error)
- func (_m *Environment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)
- func (_m *Environment) EmitEvent(_a0 cadence.Event) error
- func (_m *Environment) GenerateUUID() (uint64, error)
- func (_m *Environment) GetAccountAvailableBalance(address common.Address) (uint64, error)
- func (_m *Environment) GetAccountBalance(address common.Address) (uint64, error)
- func (_m *Environment) GetAccountContractCode(address common.Address, name string) ([]byte, error)
- func (_m *Environment) GetAccountContractNames(address common.Address) ([]string, error)
- func (_m *Environment) GetAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
- func (_m *Environment) GetBlockAtHeight(height uint64) (runtime.Block, bool, error)
- func (_m *Environment) GetCode(location common.Location) ([]byte, error)
- func (_m *Environment) GetComputationLimit() uint64
- func (_m *Environment) GetCurrentBlockHeight() (uint64, error)
- func (_m *Environment) GetProgram(_a0 common.Location) (*interpreter.Program, error)
- func (_m *Environment) GetSigningAccounts() ([]common.Address, error)
- func (_m *Environment) GetStorageCapacity(address common.Address) (uint64, error)
- func (_m *Environment) GetStorageUsed(address common.Address) (uint64, error)
- func (_m *Environment) GetValue(owner []byte, key []byte) ([]byte, error)
- func (_m *Environment) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
- func (_m *Environment) ImplementationDebugLog(message string) error
- func (_m *Environment) ProgramLog(_a0 string) error
- func (_m *Environment) RemoveAccountContractCode(address common.Address, name string) error
- func (_m *Environment) ResolveLocation(identifiers []ast.Identifier, location common.Location) ([]sema.ResolvedLocation, error)
- func (_m *Environment) RevokeAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
- func (_m *Environment) RevokeEncodedAccountKey(address common.Address, index int) ([]byte, error)
- func (_m *Environment) SetComputationUsed(used uint64) error
- func (_m *Environment) SetProgram(_a0 common.Location, _a1 *interpreter.Program) error
- func (_m *Environment) SetValue(owner []byte, key []byte, value []byte) error
- func (_m *Environment) UnsafeRandom() (uint64, error)
- func (_m *Environment) UpdateAccountContractCode(address common.Address, name string, code []byte) error
- func (_m *Environment) VM() *fvm.VirtualMachine
- func (_m *Environment) ValidatePublicKey(key *runtime.PublicKey) (bool, error)
- func (_m *Environment) ValueExists(owner []byte, key []byte) (bool, error)
- func (_m *Environment) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, ...) (bool, error)
- type Error
- type FlowError
- type Ledger
- type Procedure
- type ScriptProcessor
- type SignatureVerifier
- type TransactionProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressState ¶
AddressState is an autogenerated mock type for the AddressState type
func (*AddressState) Bytes ¶
func (_m *AddressState) Bytes() []byte
Bytes provides a mock function with given fields:
func (*AddressState) CurrentAddress ¶
func (_m *AddressState) CurrentAddress() flow.Address
CurrentAddress provides a mock function with given fields:
func (*AddressState) NextAddress ¶
func (_m *AddressState) NextAddress() (flow.Address, error)
NextAddress provides a mock function with given fields:
type Enviornment ¶ added in v0.20.0
Enviornment is an autogenerated mock type for the Enviornment type
func (*Enviornment) AddAccountKey ¶ added in v0.20.0
func (_m *Enviornment) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*runtime.AccountKey, error)
AddAccountKey provides a mock function with given fields: address, publicKey, hashAlgo, weight
func (*Enviornment) AddEncodedAccountKey ¶ added in v0.20.0
func (_m *Enviornment) AddEncodedAccountKey(address common.Address, publicKey []byte) error
AddEncodedAccountKey provides a mock function with given fields: address, publicKey
func (*Enviornment) AllocateStorageIndex ¶ added in v0.22.2
func (_m *Enviornment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
AllocateStorageIndex provides a mock function with given fields: owner
func (*Enviornment) Context ¶ added in v0.20.0
func (_m *Enviornment) Context() *fvm.Context
Context provides a mock function with given fields:
func (*Enviornment) CreateAccount ¶ added in v0.20.0
CreateAccount provides a mock function with given fields: payer
func (*Enviornment) DecodeArgument ¶ added in v0.20.0
func (_m *Enviornment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)
DecodeArgument provides a mock function with given fields: argument, argumentType
func (*Enviornment) EmitEvent ¶ added in v0.20.0
func (_m *Enviornment) EmitEvent(_a0 cadence.Event) error
EmitEvent provides a mock function with given fields: _a0
func (*Enviornment) GenerateUUID ¶ added in v0.20.0
func (_m *Enviornment) GenerateUUID() (uint64, error)
GenerateUUID provides a mock function with given fields:
func (*Enviornment) GetAccountAvailableBalance ¶ added in v0.20.0
func (_m *Enviornment) GetAccountAvailableBalance(address common.Address) (uint64, error)
GetAccountAvailableBalance provides a mock function with given fields: address
func (*Enviornment) GetAccountBalance ¶ added in v0.20.0
func (_m *Enviornment) GetAccountBalance(address common.Address) (uint64, error)
GetAccountBalance provides a mock function with given fields: address
func (*Enviornment) GetAccountContractCode ¶ added in v0.20.0
GetAccountContractCode provides a mock function with given fields: address, name
func (*Enviornment) GetAccountContractNames ¶ added in v0.21.0
func (_m *Enviornment) GetAccountContractNames(address common.Address) ([]string, error)
GetAccountContractNames provides a mock function with given fields: address
func (*Enviornment) GetAccountKey ¶ added in v0.20.0
func (_m *Enviornment) GetAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
GetAccountKey provides a mock function with given fields: address, index
func (*Enviornment) GetBlockAtHeight ¶ added in v0.20.0
GetBlockAtHeight provides a mock function with given fields: height
func (*Enviornment) GetCode ¶ added in v0.20.0
func (_m *Enviornment) GetCode(location common.Location) ([]byte, error)
GetCode provides a mock function with given fields: location
func (*Enviornment) GetComputationLimit ¶ added in v0.20.0
func (_m *Enviornment) GetComputationLimit() uint64
GetComputationLimit provides a mock function with given fields:
func (*Enviornment) GetCurrentBlockHeight ¶ added in v0.20.0
func (_m *Enviornment) GetCurrentBlockHeight() (uint64, error)
GetCurrentBlockHeight provides a mock function with given fields:
func (*Enviornment) GetProgram ¶ added in v0.20.0
func (_m *Enviornment) GetProgram(_a0 common.Location) (*interpreter.Program, error)
GetProgram provides a mock function with given fields: _a0
func (*Enviornment) GetSigningAccounts ¶ added in v0.20.0
func (_m *Enviornment) GetSigningAccounts() ([]common.Address, error)
GetSigningAccounts provides a mock function with given fields:
func (*Enviornment) GetStorageCapacity ¶ added in v0.20.0
func (_m *Enviornment) GetStorageCapacity(address common.Address) (uint64, error)
GetStorageCapacity provides a mock function with given fields: address
func (*Enviornment) GetStorageUsed ¶ added in v0.20.0
func (_m *Enviornment) GetStorageUsed(address common.Address) (uint64, error)
GetStorageUsed provides a mock function with given fields: address
func (*Enviornment) GetValue ¶ added in v0.20.0
func (_m *Enviornment) GetValue(owner []byte, key []byte) ([]byte, error)
GetValue provides a mock function with given fields: owner, key
func (*Enviornment) Hash ¶ added in v0.20.0
func (_m *Enviornment) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
Hash provides a mock function with given fields: data, tag, hashAlgorithm
func (*Enviornment) ImplementationDebugLog ¶ added in v0.20.0
func (_m *Enviornment) ImplementationDebugLog(message string) error
ImplementationDebugLog provides a mock function with given fields: message
func (*Enviornment) ProgramLog ¶ added in v0.20.0
func (_m *Enviornment) ProgramLog(_a0 string) error
ProgramLog provides a mock function with given fields: _a0
func (*Enviornment) RemoveAccountContractCode ¶ added in v0.20.0
func (_m *Enviornment) RemoveAccountContractCode(address common.Address, name string) error
RemoveAccountContractCode provides a mock function with given fields: address, name
func (*Enviornment) ResolveLocation ¶ added in v0.20.0
func (_m *Enviornment) ResolveLocation(identifiers []ast.Identifier, location common.Location) ([]sema.ResolvedLocation, error)
ResolveLocation provides a mock function with given fields: identifiers, location
func (*Enviornment) RevokeAccountKey ¶ added in v0.20.0
func (_m *Enviornment) RevokeAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
RevokeAccountKey provides a mock function with given fields: address, index
func (*Enviornment) RevokeEncodedAccountKey ¶ added in v0.20.0
RevokeEncodedAccountKey provides a mock function with given fields: address, index
func (*Enviornment) SetComputationUsed ¶ added in v0.20.0
func (_m *Enviornment) SetComputationUsed(used uint64) error
SetComputationUsed provides a mock function with given fields: used
func (*Enviornment) SetProgram ¶ added in v0.20.0
func (_m *Enviornment) SetProgram(_a0 common.Location, _a1 *interpreter.Program) error
SetProgram provides a mock function with given fields: _a0, _a1
func (*Enviornment) SetValue ¶ added in v0.20.0
func (_m *Enviornment) SetValue(owner []byte, key []byte, value []byte) error
SetValue provides a mock function with given fields: owner, key, value
func (*Enviornment) UnsafeRandom ¶ added in v0.20.0
func (_m *Enviornment) UnsafeRandom() (uint64, error)
UnsafeRandom provides a mock function with given fields:
func (*Enviornment) UpdateAccountContractCode ¶ added in v0.20.0
func (_m *Enviornment) UpdateAccountContractCode(address common.Address, name string, code []byte) error
UpdateAccountContractCode provides a mock function with given fields: address, name, code
func (*Enviornment) VM ¶ added in v0.20.0
func (_m *Enviornment) VM() *fvm.VirtualMachine
VM provides a mock function with given fields:
func (*Enviornment) ValidatePublicKey ¶ added in v0.20.0
func (_m *Enviornment) ValidatePublicKey(key *runtime.PublicKey) (bool, error)
ValidatePublicKey provides a mock function with given fields: key
func (*Enviornment) ValueExists ¶ added in v0.20.0
func (_m *Enviornment) ValueExists(owner []byte, key []byte) (bool, error)
ValueExists provides a mock function with given fields: owner, key
func (*Enviornment) VerifySignature ¶ added in v0.20.0
func (_m *Enviornment) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, signatureAlgorithm sema.SignatureAlgorithm, hashAlgorithm sema.HashAlgorithm) (bool, error)
VerifySignature provides a mock function with given fields: signature, tag, signedData, publicKey, signatureAlgorithm, hashAlgorithm
type Environment ¶ added in v0.22.4
Environment is an autogenerated mock type for the Environment type
func (*Environment) AddAccountKey ¶ added in v0.22.4
func (_m *Environment) AddAccountKey(address common.Address, publicKey *runtime.PublicKey, hashAlgo sema.HashAlgorithm, weight int) (*runtime.AccountKey, error)
AddAccountKey provides a mock function with given fields: address, publicKey, hashAlgo, weight
func (*Environment) AddEncodedAccountKey ¶ added in v0.22.4
func (_m *Environment) AddEncodedAccountKey(address common.Address, publicKey []byte) error
AddEncodedAccountKey provides a mock function with given fields: address, publicKey
func (*Environment) AllocateStorageIndex ¶ added in v0.22.4
func (_m *Environment) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
AllocateStorageIndex provides a mock function with given fields: owner
func (*Environment) Context ¶ added in v0.22.4
func (_m *Environment) Context() *fvm.Context
Context provides a mock function with given fields:
func (*Environment) CreateAccount ¶ added in v0.22.4
CreateAccount provides a mock function with given fields: payer
func (*Environment) DecodeArgument ¶ added in v0.22.4
func (_m *Environment) DecodeArgument(argument []byte, argumentType cadence.Type) (cadence.Value, error)
DecodeArgument provides a mock function with given fields: argument, argumentType
func (*Environment) EmitEvent ¶ added in v0.22.4
func (_m *Environment) EmitEvent(_a0 cadence.Event) error
EmitEvent provides a mock function with given fields: _a0
func (*Environment) GenerateUUID ¶ added in v0.22.4
func (_m *Environment) GenerateUUID() (uint64, error)
GenerateUUID provides a mock function with given fields:
func (*Environment) GetAccountAvailableBalance ¶ added in v0.22.4
func (_m *Environment) GetAccountAvailableBalance(address common.Address) (uint64, error)
GetAccountAvailableBalance provides a mock function with given fields: address
func (*Environment) GetAccountBalance ¶ added in v0.22.4
func (_m *Environment) GetAccountBalance(address common.Address) (uint64, error)
GetAccountBalance provides a mock function with given fields: address
func (*Environment) GetAccountContractCode ¶ added in v0.22.4
GetAccountContractCode provides a mock function with given fields: address, name
func (*Environment) GetAccountContractNames ¶ added in v0.22.4
func (_m *Environment) GetAccountContractNames(address common.Address) ([]string, error)
GetAccountContractNames provides a mock function with given fields: address
func (*Environment) GetAccountKey ¶ added in v0.22.4
func (_m *Environment) GetAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
GetAccountKey provides a mock function with given fields: address, index
func (*Environment) GetBlockAtHeight ¶ added in v0.22.4
GetBlockAtHeight provides a mock function with given fields: height
func (*Environment) GetCode ¶ added in v0.22.4
func (_m *Environment) GetCode(location common.Location) ([]byte, error)
GetCode provides a mock function with given fields: location
func (*Environment) GetComputationLimit ¶ added in v0.22.4
func (_m *Environment) GetComputationLimit() uint64
GetComputationLimit provides a mock function with given fields:
func (*Environment) GetCurrentBlockHeight ¶ added in v0.22.4
func (_m *Environment) GetCurrentBlockHeight() (uint64, error)
GetCurrentBlockHeight provides a mock function with given fields:
func (*Environment) GetProgram ¶ added in v0.22.4
func (_m *Environment) GetProgram(_a0 common.Location) (*interpreter.Program, error)
GetProgram provides a mock function with given fields: _a0
func (*Environment) GetSigningAccounts ¶ added in v0.22.4
func (_m *Environment) GetSigningAccounts() ([]common.Address, error)
GetSigningAccounts provides a mock function with given fields:
func (*Environment) GetStorageCapacity ¶ added in v0.22.4
func (_m *Environment) GetStorageCapacity(address common.Address) (uint64, error)
GetStorageCapacity provides a mock function with given fields: address
func (*Environment) GetStorageUsed ¶ added in v0.22.4
func (_m *Environment) GetStorageUsed(address common.Address) (uint64, error)
GetStorageUsed provides a mock function with given fields: address
func (*Environment) GetValue ¶ added in v0.22.4
func (_m *Environment) GetValue(owner []byte, key []byte) ([]byte, error)
GetValue provides a mock function with given fields: owner, key
func (*Environment) Hash ¶ added in v0.22.4
func (_m *Environment) Hash(data []byte, tag string, hashAlgorithm sema.HashAlgorithm) ([]byte, error)
Hash provides a mock function with given fields: data, tag, hashAlgorithm
func (*Environment) ImplementationDebugLog ¶ added in v0.22.4
func (_m *Environment) ImplementationDebugLog(message string) error
ImplementationDebugLog provides a mock function with given fields: message
func (*Environment) ProgramLog ¶ added in v0.22.4
func (_m *Environment) ProgramLog(_a0 string) error
ProgramLog provides a mock function with given fields: _a0
func (*Environment) RemoveAccountContractCode ¶ added in v0.22.4
func (_m *Environment) RemoveAccountContractCode(address common.Address, name string) error
RemoveAccountContractCode provides a mock function with given fields: address, name
func (*Environment) ResolveLocation ¶ added in v0.22.4
func (_m *Environment) ResolveLocation(identifiers []ast.Identifier, location common.Location) ([]sema.ResolvedLocation, error)
ResolveLocation provides a mock function with given fields: identifiers, location
func (*Environment) RevokeAccountKey ¶ added in v0.22.4
func (_m *Environment) RevokeAccountKey(address common.Address, index int) (*runtime.AccountKey, error)
RevokeAccountKey provides a mock function with given fields: address, index
func (*Environment) RevokeEncodedAccountKey ¶ added in v0.22.4
RevokeEncodedAccountKey provides a mock function with given fields: address, index
func (*Environment) SetComputationUsed ¶ added in v0.22.4
func (_m *Environment) SetComputationUsed(used uint64) error
SetComputationUsed provides a mock function with given fields: used
func (*Environment) SetProgram ¶ added in v0.22.4
func (_m *Environment) SetProgram(_a0 common.Location, _a1 *interpreter.Program) error
SetProgram provides a mock function with given fields: _a0, _a1
func (*Environment) SetValue ¶ added in v0.22.4
func (_m *Environment) SetValue(owner []byte, key []byte, value []byte) error
SetValue provides a mock function with given fields: owner, key, value
func (*Environment) UnsafeRandom ¶ added in v0.22.4
func (_m *Environment) UnsafeRandom() (uint64, error)
UnsafeRandom provides a mock function with given fields:
func (*Environment) UpdateAccountContractCode ¶ added in v0.22.4
func (_m *Environment) UpdateAccountContractCode(address common.Address, name string, code []byte) error
UpdateAccountContractCode provides a mock function with given fields: address, name, code
func (*Environment) VM ¶ added in v0.22.4
func (_m *Environment) VM() *fvm.VirtualMachine
VM provides a mock function with given fields:
func (*Environment) ValidatePublicKey ¶ added in v0.22.4
func (_m *Environment) ValidatePublicKey(key *runtime.PublicKey) (bool, error)
ValidatePublicKey provides a mock function with given fields: key
func (*Environment) ValueExists ¶ added in v0.22.4
func (_m *Environment) ValueExists(owner []byte, key []byte) (bool, error)
ValueExists provides a mock function with given fields: owner, key
func (*Environment) VerifySignature ¶ added in v0.22.4
func (_m *Environment) VerifySignature(signature []byte, tag string, signedData []byte, publicKey []byte, signatureAlgorithm sema.SignatureAlgorithm, hashAlgorithm sema.HashAlgorithm) (bool, error)
VerifySignature provides a mock function with given fields: signature, tag, signedData, publicKey, signatureAlgorithm, hashAlgorithm
type Error ¶
Error is an autogenerated mock type for the Error type
type FlowError ¶
FlowError is an autogenerated mock type for the FlowError type
func (*FlowError) ErrorMessage ¶
ErrorMessage provides a mock function with given fields:
func (*FlowError) StatusCode ¶
StatusCode provides a mock function with given fields:
type Ledger ¶
Ledger is an autogenerated mock type for the Ledger type
type ScriptProcessor ¶
ScriptProcessor is an autogenerated mock type for the ScriptProcessor type
func (*ScriptProcessor) Process ¶
func (_m *ScriptProcessor) Process(_a0 *fvm.VirtualMachine, _a1 fvm.Context, _a2 *fvm.ScriptProcedure, _a3 *state.StateHolder, _a4 *programs.Programs) error
Process provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
type SignatureVerifier ¶
SignatureVerifier is an autogenerated mock type for the SignatureVerifier type
type TransactionProcessor ¶
TransactionProcessor is an autogenerated mock type for the TransactionProcessor type
func (*TransactionProcessor) Process ¶
func (_m *TransactionProcessor) Process(_a0 *fvm.VirtualMachine, _a1 *fvm.Context, _a2 *fvm.TransactionProcedure, _a3 *state.StateHolder, _a4 *programs.Programs) error
Process provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4