mocks

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OverflowClient

type OverflowClient struct {
	mock.Mock
}

OverflowClient is an autogenerated mock type for the OverflowClient type

func NewOverflowClient

func NewOverflowClient(t mockConstructorTestingTNewOverflowClient) *OverflowClient

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

func (*OverflowClient) Account

func (_m *OverflowClient) Account(key string) *flowkit.Account

Account provides a mock function with given fields: key

func (*OverflowClient) AccountE

func (_m *OverflowClient) AccountE(key string) (*flowkit.Account, error)

AccountE provides a mock function with given fields: key

func (*OverflowClient) AddContract

func (_m *OverflowClient) AddContract(name string, contract *services.Contract, update bool) error

AddContract provides a mock function with given fields: name, contract, update

func (*OverflowClient) Address

func (_m *OverflowClient) Address(key string) string

Address provides a mock function with given fields: key

func (*OverflowClient) DownloadAndUploadFile

func (_m *OverflowClient) DownloadAndUploadFile(url string, accountName string) error

DownloadAndUploadFile provides a mock function with given fields: url, accountName

func (*OverflowClient) DownloadImageAndUploadAsDataUrl

func (_m *OverflowClient) DownloadImageAndUploadAsDataUrl(url string, accountName string) error

DownloadImageAndUploadAsDataUrl provides a mock function with given fields: url, accountName

func (*OverflowClient) EXPECT

func (*OverflowClient) FetchEventsWithResult

FetchEventsWithResult provides a mock function with given fields: opts

func (*OverflowClient) FillUpStorage

func (_m *OverflowClient) FillUpStorage(accountName string) *overflow.OverflowState

FillUpStorage provides a mock function with given fields: accountName

func (*OverflowClient) GetAccount

func (_m *OverflowClient) GetAccount(key string) (*flow.Account, error)

GetAccount provides a mock function with given fields: key

func (*OverflowClient) GetBlockAtHeight

func (_m *OverflowClient) GetBlockAtHeight(height uint64) (*flow.Block, error)

GetBlockAtHeight provides a mock function with given fields: height

func (*OverflowClient) GetBlockById

func (_m *OverflowClient) GetBlockById(blockId string) (*flow.Block, error)

GetBlockById provides a mock function with given fields: blockId

func (*OverflowClient) GetFreeCapacity

func (_m *OverflowClient) GetFreeCapacity(accountName string) int

GetFreeCapacity provides a mock function with given fields: accountName

func (*OverflowClient) GetLatestBlock

func (_m *OverflowClient) GetLatestBlock() (*flow.Block, error)

GetLatestBlock provides a mock function with given fields:

func (*OverflowClient) GetNetwork

func (_m *OverflowClient) GetNetwork() string

GetNetwork provides a mock function with given fields:

func (*OverflowClient) MintFlowTokens

func (_m *OverflowClient) MintFlowTokens(accountName string, amount float64) *overflow.OverflowState

MintFlowTokens provides a mock function with given fields: accountName, amount

func (*OverflowClient) QualifiedIdentifier

func (_m *OverflowClient) QualifiedIdentifier(contract string, name string) (string, error)

QualifiedIdentifier provides a mock function with given fields: contract, name

func (*OverflowClient) QualifiedIdentifierFromSnakeCase

func (_m *OverflowClient) QualifiedIdentifierFromSnakeCase(typeName string) (string, error)

QualifiedIdentifierFromSnakeCase provides a mock function with given fields: typeName

func (*OverflowClient) Script

Script provides a mock function with given fields: filename, opts

func (*OverflowClient) ScriptFN

ScriptFN provides a mock function with given fields: outerOpts

func (*OverflowClient) ScriptFileNameFN

func (_m *OverflowClient) ScriptFileNameFN(filename string, outerOpts ...overflow.OverflowInteractionOption) overflow.OverflowScriptOptsFunction

ScriptFileNameFN provides a mock function with given fields: filename, outerOpts

func (*OverflowClient) SignUserMessage

func (_m *OverflowClient) SignUserMessage(account string, message string) (string, error)

SignUserMessage provides a mock function with given fields: account, message

func (*OverflowClient) Tx

Tx provides a mock function with given fields: filename, opts

func (*OverflowClient) TxFN

TxFN provides a mock function with given fields: outerOpts

func (*OverflowClient) TxFileNameFN

TxFileNameFN provides a mock function with given fields: filename, outerOpts

func (*OverflowClient) UploadFile

func (_m *OverflowClient) UploadFile(filename string, accountName string) error

UploadFile provides a mock function with given fields: filename, accountName

func (*OverflowClient) UploadImageAsDataUrl

func (_m *OverflowClient) UploadImageAsDataUrl(filename string, accountName string) error

UploadImageAsDataUrl provides a mock function with given fields: filename, accountName

func (*OverflowClient) UploadString

func (_m *OverflowClient) UploadString(content string, accountName string) error

UploadString provides a mock function with given fields: content, accountName

type OverflowClient_AccountE_Call

type OverflowClient_AccountE_Call struct {
	*mock.Call
}

OverflowClient_AccountE_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountE'

func (*OverflowClient_AccountE_Call) Return

func (*OverflowClient_AccountE_Call) Run

type OverflowClient_Account_Call

type OverflowClient_Account_Call struct {
	*mock.Call
}

OverflowClient_Account_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Account'

func (*OverflowClient_Account_Call) Return

func (*OverflowClient_Account_Call) Run

type OverflowClient_AddContract_Call

type OverflowClient_AddContract_Call struct {
	*mock.Call
}

OverflowClient_AddContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddContract'

func (*OverflowClient_AddContract_Call) Return

func (*OverflowClient_AddContract_Call) Run

type OverflowClient_Address_Call

type OverflowClient_Address_Call struct {
	*mock.Call
}

OverflowClient_Address_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Address'

func (*OverflowClient_Address_Call) Return

func (*OverflowClient_Address_Call) Run

type OverflowClient_DownloadAndUploadFile_Call

type OverflowClient_DownloadAndUploadFile_Call struct {
	*mock.Call
}

OverflowClient_DownloadAndUploadFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadAndUploadFile'

func (*OverflowClient_DownloadAndUploadFile_Call) Return

func (*OverflowClient_DownloadAndUploadFile_Call) Run

type OverflowClient_DownloadImageAndUploadAsDataUrl_Call

type OverflowClient_DownloadImageAndUploadAsDataUrl_Call struct {
	*mock.Call
}

OverflowClient_DownloadImageAndUploadAsDataUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadImageAndUploadAsDataUrl'

func (*OverflowClient_DownloadImageAndUploadAsDataUrl_Call) Return

func (*OverflowClient_DownloadImageAndUploadAsDataUrl_Call) Run

type OverflowClient_Expecter

type OverflowClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*OverflowClient_Expecter) Account

func (_e *OverflowClient_Expecter) Account(key interface{}) *OverflowClient_Account_Call

Account is a helper method to define mock.On call

  • key string

func (*OverflowClient_Expecter) AccountE

func (_e *OverflowClient_Expecter) AccountE(key interface{}) *OverflowClient_AccountE_Call

AccountE is a helper method to define mock.On call

  • key string

func (*OverflowClient_Expecter) AddContract

func (_e *OverflowClient_Expecter) AddContract(name interface{}, contract interface{}, update interface{}) *OverflowClient_AddContract_Call

AddContract is a helper method to define mock.On call

  • name string
  • contract *services.Contract
  • update bool

func (*OverflowClient_Expecter) Address

func (_e *OverflowClient_Expecter) Address(key interface{}) *OverflowClient_Address_Call

Address is a helper method to define mock.On call

  • key string

func (*OverflowClient_Expecter) DownloadAndUploadFile

func (_e *OverflowClient_Expecter) DownloadAndUploadFile(url interface{}, accountName interface{}) *OverflowClient_DownloadAndUploadFile_Call

DownloadAndUploadFile is a helper method to define mock.On call

  • url string
  • accountName string

func (*OverflowClient_Expecter) DownloadImageAndUploadAsDataUrl

func (_e *OverflowClient_Expecter) DownloadImageAndUploadAsDataUrl(url interface{}, accountName interface{}) *OverflowClient_DownloadImageAndUploadAsDataUrl_Call

DownloadImageAndUploadAsDataUrl is a helper method to define mock.On call

  • url string
  • accountName string

func (*OverflowClient_Expecter) FetchEventsWithResult

func (_e *OverflowClient_Expecter) FetchEventsWithResult(opts ...interface{}) *OverflowClient_FetchEventsWithResult_Call

FetchEventsWithResult is a helper method to define mock.On call

  • opts ...overflow.OverflowEventFetcherOption

func (*OverflowClient_Expecter) FillUpStorage

func (_e *OverflowClient_Expecter) FillUpStorage(accountName interface{}) *OverflowClient_FillUpStorage_Call

FillUpStorage is a helper method to define mock.On call

  • accountName string

func (*OverflowClient_Expecter) GetAccount

func (_e *OverflowClient_Expecter) GetAccount(key interface{}) *OverflowClient_GetAccount_Call

GetAccount is a helper method to define mock.On call

  • key string

func (*OverflowClient_Expecter) GetBlockAtHeight

func (_e *OverflowClient_Expecter) GetBlockAtHeight(height interface{}) *OverflowClient_GetBlockAtHeight_Call

GetBlockAtHeight is a helper method to define mock.On call

  • height uint64

func (*OverflowClient_Expecter) GetBlockById

func (_e *OverflowClient_Expecter) GetBlockById(blockId interface{}) *OverflowClient_GetBlockById_Call

GetBlockById is a helper method to define mock.On call

  • blockId string

func (*OverflowClient_Expecter) GetFreeCapacity

func (_e *OverflowClient_Expecter) GetFreeCapacity(accountName interface{}) *OverflowClient_GetFreeCapacity_Call

GetFreeCapacity is a helper method to define mock.On call

  • accountName string

func (*OverflowClient_Expecter) GetLatestBlock

GetLatestBlock is a helper method to define mock.On call

func (*OverflowClient_Expecter) GetNetwork

GetNetwork is a helper method to define mock.On call

func (*OverflowClient_Expecter) MintFlowTokens

func (_e *OverflowClient_Expecter) MintFlowTokens(accountName interface{}, amount interface{}) *OverflowClient_MintFlowTokens_Call

MintFlowTokens is a helper method to define mock.On call

  • accountName string
  • amount float64

func (*OverflowClient_Expecter) QualifiedIdentifier

func (_e *OverflowClient_Expecter) QualifiedIdentifier(contract interface{}, name interface{}) *OverflowClient_QualifiedIdentifier_Call

QualifiedIdentifier is a helper method to define mock.On call

  • contract string
  • name string

func (*OverflowClient_Expecter) QualifiedIdentifierFromSnakeCase

func (_e *OverflowClient_Expecter) QualifiedIdentifierFromSnakeCase(typeName interface{}) *OverflowClient_QualifiedIdentifierFromSnakeCase_Call

QualifiedIdentifierFromSnakeCase is a helper method to define mock.On call

  • typeName string

func (*OverflowClient_Expecter) Script

func (_e *OverflowClient_Expecter) Script(filename interface{}, opts ...interface{}) *OverflowClient_Script_Call

Script is a helper method to define mock.On call

  • filename string
  • opts ...overflow.OverflowInteractionOption

func (*OverflowClient_Expecter) ScriptFN

func (_e *OverflowClient_Expecter) ScriptFN(outerOpts ...interface{}) *OverflowClient_ScriptFN_Call

ScriptFN is a helper method to define mock.On call

  • outerOpts ...overflow.OverflowInteractionOption

func (*OverflowClient_Expecter) ScriptFileNameFN

func (_e *OverflowClient_Expecter) ScriptFileNameFN(filename interface{}, outerOpts ...interface{}) *OverflowClient_ScriptFileNameFN_Call

ScriptFileNameFN is a helper method to define mock.On call

  • filename string
  • outerOpts ...overflow.OverflowInteractionOption

func (*OverflowClient_Expecter) SignUserMessage

func (_e *OverflowClient_Expecter) SignUserMessage(account interface{}, message interface{}) *OverflowClient_SignUserMessage_Call

SignUserMessage is a helper method to define mock.On call

  • account string
  • message string

func (*OverflowClient_Expecter) Tx

func (_e *OverflowClient_Expecter) Tx(filename interface{}, opts ...interface{}) *OverflowClient_Tx_Call

Tx is a helper method to define mock.On call

  • filename string
  • opts ...overflow.OverflowInteractionOption

func (*OverflowClient_Expecter) TxFN

func (_e *OverflowClient_Expecter) TxFN(outerOpts ...interface{}) *OverflowClient_TxFN_Call

TxFN is a helper method to define mock.On call

  • outerOpts ...overflow.OverflowInteractionOption

func (*OverflowClient_Expecter) TxFileNameFN

func (_e *OverflowClient_Expecter) TxFileNameFN(filename interface{}, outerOpts ...interface{}) *OverflowClient_TxFileNameFN_Call

TxFileNameFN is a helper method to define mock.On call

  • filename string
  • outerOpts ...overflow.OverflowInteractionOption

func (*OverflowClient_Expecter) UploadFile

func (_e *OverflowClient_Expecter) UploadFile(filename interface{}, accountName interface{}) *OverflowClient_UploadFile_Call

UploadFile is a helper method to define mock.On call

  • filename string
  • accountName string

func (*OverflowClient_Expecter) UploadImageAsDataUrl

func (_e *OverflowClient_Expecter) UploadImageAsDataUrl(filename interface{}, accountName interface{}) *OverflowClient_UploadImageAsDataUrl_Call

UploadImageAsDataUrl is a helper method to define mock.On call

  • filename string
  • accountName string

func (*OverflowClient_Expecter) UploadString

func (_e *OverflowClient_Expecter) UploadString(content interface{}, accountName interface{}) *OverflowClient_UploadString_Call

UploadString is a helper method to define mock.On call

  • content string
  • accountName string

type OverflowClient_FetchEventsWithResult_Call

type OverflowClient_FetchEventsWithResult_Call struct {
	*mock.Call
}

OverflowClient_FetchEventsWithResult_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchEventsWithResult'

func (*OverflowClient_FetchEventsWithResult_Call) Return

func (*OverflowClient_FetchEventsWithResult_Call) Run

type OverflowClient_FillUpStorage_Call

type OverflowClient_FillUpStorage_Call struct {
	*mock.Call
}

OverflowClient_FillUpStorage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FillUpStorage'

func (*OverflowClient_FillUpStorage_Call) Return

func (*OverflowClient_FillUpStorage_Call) Run

type OverflowClient_GetAccount_Call

type OverflowClient_GetAccount_Call struct {
	*mock.Call
}

OverflowClient_GetAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccount'

func (*OverflowClient_GetAccount_Call) Return

func (*OverflowClient_GetAccount_Call) Run

type OverflowClient_GetBlockAtHeight_Call

type OverflowClient_GetBlockAtHeight_Call struct {
	*mock.Call
}

OverflowClient_GetBlockAtHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockAtHeight'

func (*OverflowClient_GetBlockAtHeight_Call) Return

func (*OverflowClient_GetBlockAtHeight_Call) Run

type OverflowClient_GetBlockById_Call

type OverflowClient_GetBlockById_Call struct {
	*mock.Call
}

OverflowClient_GetBlockById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockById'

func (*OverflowClient_GetBlockById_Call) Return

func (*OverflowClient_GetBlockById_Call) Run

type OverflowClient_GetFreeCapacity_Call

type OverflowClient_GetFreeCapacity_Call struct {
	*mock.Call
}

OverflowClient_GetFreeCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFreeCapacity'

func (*OverflowClient_GetFreeCapacity_Call) Return

func (*OverflowClient_GetFreeCapacity_Call) Run

type OverflowClient_GetLatestBlock_Call

type OverflowClient_GetLatestBlock_Call struct {
	*mock.Call
}

OverflowClient_GetLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlock'

func (*OverflowClient_GetLatestBlock_Call) Return

func (*OverflowClient_GetLatestBlock_Call) Run

type OverflowClient_GetNetwork_Call

type OverflowClient_GetNetwork_Call struct {
	*mock.Call
}

OverflowClient_GetNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetwork'

func (*OverflowClient_GetNetwork_Call) Return

func (*OverflowClient_GetNetwork_Call) Run

type OverflowClient_MintFlowTokens_Call

type OverflowClient_MintFlowTokens_Call struct {
	*mock.Call
}

OverflowClient_MintFlowTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MintFlowTokens'

func (*OverflowClient_MintFlowTokens_Call) Return

func (*OverflowClient_MintFlowTokens_Call) Run

type OverflowClient_QualifiedIdentifierFromSnakeCase_Call

type OverflowClient_QualifiedIdentifierFromSnakeCase_Call struct {
	*mock.Call
}

OverflowClient_QualifiedIdentifierFromSnakeCase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QualifiedIdentifierFromSnakeCase'

func (*OverflowClient_QualifiedIdentifierFromSnakeCase_Call) Return

func (*OverflowClient_QualifiedIdentifierFromSnakeCase_Call) Run

type OverflowClient_QualifiedIdentifier_Call

type OverflowClient_QualifiedIdentifier_Call struct {
	*mock.Call
}

OverflowClient_QualifiedIdentifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QualifiedIdentifier'

func (*OverflowClient_QualifiedIdentifier_Call) Return

func (*OverflowClient_QualifiedIdentifier_Call) Run

type OverflowClient_ScriptFN_Call

type OverflowClient_ScriptFN_Call struct {
	*mock.Call
}

OverflowClient_ScriptFN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScriptFN'

func (*OverflowClient_ScriptFN_Call) Return

func (*OverflowClient_ScriptFN_Call) Run

type OverflowClient_ScriptFileNameFN_Call

type OverflowClient_ScriptFileNameFN_Call struct {
	*mock.Call
}

OverflowClient_ScriptFileNameFN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScriptFileNameFN'

func (*OverflowClient_ScriptFileNameFN_Call) Return

func (*OverflowClient_ScriptFileNameFN_Call) Run

type OverflowClient_Script_Call

type OverflowClient_Script_Call struct {
	*mock.Call
}

OverflowClient_Script_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Script'

func (*OverflowClient_Script_Call) Return

func (*OverflowClient_Script_Call) Run

type OverflowClient_SignUserMessage_Call

type OverflowClient_SignUserMessage_Call struct {
	*mock.Call
}

OverflowClient_SignUserMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignUserMessage'

func (*OverflowClient_SignUserMessage_Call) Return

func (*OverflowClient_SignUserMessage_Call) Run

type OverflowClient_TxFN_Call

type OverflowClient_TxFN_Call struct {
	*mock.Call
}

OverflowClient_TxFN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TxFN'

func (*OverflowClient_TxFN_Call) Return

func (*OverflowClient_TxFN_Call) Run

type OverflowClient_TxFileNameFN_Call

type OverflowClient_TxFileNameFN_Call struct {
	*mock.Call
}

OverflowClient_TxFileNameFN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TxFileNameFN'

func (*OverflowClient_TxFileNameFN_Call) Run

type OverflowClient_Tx_Call

type OverflowClient_Tx_Call struct {
	*mock.Call
}

OverflowClient_Tx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tx'

func (*OverflowClient_Tx_Call) Return

func (*OverflowClient_Tx_Call) Run

type OverflowClient_UploadFile_Call

type OverflowClient_UploadFile_Call struct {
	*mock.Call
}

OverflowClient_UploadFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadFile'

func (*OverflowClient_UploadFile_Call) Return

func (*OverflowClient_UploadFile_Call) Run

func (_c *OverflowClient_UploadFile_Call) Run(run func(filename string, accountName string)) *OverflowClient_UploadFile_Call

type OverflowClient_UploadImageAsDataUrl_Call

type OverflowClient_UploadImageAsDataUrl_Call struct {
	*mock.Call
}

OverflowClient_UploadImageAsDataUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadImageAsDataUrl'

func (*OverflowClient_UploadImageAsDataUrl_Call) Return

func (*OverflowClient_UploadImageAsDataUrl_Call) Run

type OverflowClient_UploadString_Call

type OverflowClient_UploadString_Call struct {
	*mock.Call
}

OverflowClient_UploadString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadString'

func (*OverflowClient_UploadString_Call) Return

func (*OverflowClient_UploadString_Call) Run

func (_c *OverflowClient_UploadString_Call) Run(run func(content string, accountName string)) *OverflowClient_UploadString_Call

Jump to

Keyboard shortcuts

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