Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 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 added in v1.1.0

type Services struct {
	mock.Mock
}

Services is an autogenerated mock type for the Services type

func NewServices added in v1.1.0

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 added in v1.1.0

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

func (*Services) BuildTransaction added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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

Gateway provides a mock function with given fields:

func (*Services) GenerateKey added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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

Network provides a mock function with given fields:

func (*Services) Ping added in v1.1.0

func (_m *Services) Ping() error

Ping provides a mock function with given fields:

func (*Services) RemoveContract added in v1.1.0

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) SendSignedTransaction added in v1.1.0

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 added in v1.1.0

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

func (*Services) SetLogger added in v1.1.0

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

SetLogger provides a mock function with given fields: _a0

func (*Services) SignTransactionPayload added in v1.1.0

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

Jump to

Keyboard shortcuts

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