mocks

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServices

type MockServices struct {
	Mock                         *Services
	AddContract                  *mock.Call
	BuildTransaction             *mock.Call
	CreateAccount                *mock.Call
	DeployProject                *mock.Call
	DerivePrivateKeyFromMnemonic *mock.Call
	Gateway                      *mock.Call
	GenerateKey                  *mock.Call
	GenerateMnemonicKey          *mock.Call
	GetBlock                     *mock.Call
	GetTransactionByID           *mock.Call
	GetTransactionsByBlockID     *mock.Call
	Network                      *mock.Call
	Ping                         *mock.Call
	RemoveContract               *mock.Call
	SendTransaction              *mock.Call
	SetLogger                    *mock.Call
	SignTransactionPayload       *mock.Call
	Test                         *mock.Call
	GetAccount                   *mock.Call
	ExecuteScript                *mock.Call
	SendSignedTransaction        *mock.Call
	GetEvents                    *mock.Call
	GetCollection                *mock.Call
}

func DefaultMockServices

func DefaultMockServices() *MockServices

type Services

type Services struct {
	mock.Mock
}

Services is an autogenerated mock type for the Services type

func NewServices

func NewServices(t interface {
	mock.TestingT
	Cleanup(func())
}) *Services

NewServices creates a new instance of Services. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Services) AddContract

AddContract provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Services) BuildTransaction

func (_m *Services) BuildTransaction(_a0 context.Context, _a1 transactions.AddressesRoles, _a2 int, _a3 flowkit.Script, _a4 uint64) (*transactions.Transaction, error)

BuildTransaction provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*Services) CreateAccount

func (_m *Services) CreateAccount(_a0 context.Context, _a1 *accounts.Account, _a2 []accounts.PublicKey) (*flow.Account, flow.Identifier, error)

CreateAccount provides a mock function with given fields: _a0, _a1, _a2

func (*Services) DeployProject

func (_m *Services) DeployProject(_a0 context.Context, _a1 flowkit.UpdateContract) ([]*project.Contract, error)

DeployProject provides a mock function with given fields: _a0, _a1

func (*Services) DerivePrivateKeyFromMnemonic

func (_m *Services) DerivePrivateKeyFromMnemonic(_a0 context.Context, _a1 string, _a2 crypto.SigningAlgorithm, _a3 string) (crypto.PrivateKey, error)

DerivePrivateKeyFromMnemonic provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Services) ExecuteScript

func (_m *Services) ExecuteScript(_a0 context.Context, _a1 flowkit.Script, _a2 flowkit.ScriptQuery) (cadence.Value, error)

ExecuteScript provides a mock function with given fields: _a0, _a1, _a2

func (*Services) Gateway

func (_m *Services) Gateway() gateway.Gateway

Gateway provides a mock function with given fields:

func (*Services) GenerateKey

func (_m *Services) GenerateKey(_a0 context.Context, _a1 crypto.SigningAlgorithm, _a2 string) (crypto.PrivateKey, error)

GenerateKey provides a mock function with given fields: _a0, _a1, _a2

func (*Services) GenerateMnemonicKey

func (_m *Services) GenerateMnemonicKey(_a0 context.Context, _a1 crypto.SigningAlgorithm, _a2 string) (crypto.PrivateKey, string, error)

GenerateMnemonicKey provides a mock function with given fields: _a0, _a1, _a2

func (*Services) GetAccount

func (_m *Services) GetAccount(_a0 context.Context, _a1 flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: _a0, _a1

func (*Services) GetBlock

func (_m *Services) GetBlock(_a0 context.Context, _a1 flowkit.BlockQuery) (*flow.Block, error)

GetBlock provides a mock function with given fields: _a0, _a1

func (*Services) GetCollection

func (_m *Services) GetCollection(_a0 context.Context, _a1 flow.Identifier) (*flow.Collection, error)

GetCollection provides a mock function with given fields: _a0, _a1

func (*Services) GetEvents

func (_m *Services) GetEvents(_a0 context.Context, _a1 []string, _a2 uint64, _a3 uint64, _a4 *flowkit.EventWorker) ([]flow.BlockEvents, error)

GetEvents provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*Services) GetTransactionByID

func (_m *Services) GetTransactionByID(_a0 context.Context, _a1 flow.Identifier, _a2 bool) (*flow.Transaction, *flow.TransactionResult, error)

GetTransactionByID provides a mock function with given fields: _a0, _a1, _a2

func (*Services) GetTransactionsByBlockID

func (_m *Services) GetTransactionsByBlockID(_a0 context.Context, _a1 flow.Identifier) ([]*flow.Transaction, []*flow.TransactionResult, error)

GetTransactionsByBlockID provides a mock function with given fields: _a0, _a1

func (*Services) Network

func (_m *Services) Network() config.Network

Network provides a mock function with given fields:

func (*Services) Ping

func (_m *Services) Ping() error

Ping provides a mock function with given fields:

func (*Services) RemoveContract

func (_m *Services) RemoveContract(_a0 context.Context, _a1 *accounts.Account, _a2 string) (flow.Identifier, error)

RemoveContract provides a mock function with given fields: _a0, _a1, _a2

func (*Services) ReplaceImportsInScript

func (_m *Services) ReplaceImportsInScript(_a0 context.Context, _a1 flowkit.Script) (flowkit.Script, error)

ReplaceImportsInScript provides a mock function with given fields: _a0, _a1

func (*Services) SendSignedTransaction

func (_m *Services) SendSignedTransaction(_a0 context.Context, _a1 *transactions.Transaction) (*flow.Transaction, *flow.TransactionResult, error)

SendSignedTransaction provides a mock function with given fields: _a0, _a1

func (*Services) SendTransaction

SendTransaction provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Services) SetLogger

func (_m *Services) SetLogger(_a0 output.Logger)

SetLogger provides a mock function with given fields: _a0

func (*Services) SignTransactionPayload

func (_m *Services) SignTransactionPayload(_a0 context.Context, _a1 *accounts.Account, _a2 []byte) (*transactions.Transaction, error)

SignTransactionPayload provides a mock function with given fields: _a0, _a1, _a2

func (*Services) WaitServer

func (_m *Services) WaitServer(_a0 context.Context) error

WaitServer provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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