testscommon

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitFetcherStub

type GitFetcherStub struct {
	CloneCalled    func(r, d string) error
	CheckoutCalled func(repoDir string, commitHashOrBranch string) error
}

GitFetcherStub -

func (*GitFetcherStub) Checkout

func (gf *GitFetcherStub) Checkout(repoDir string, commitHashOrBranch string) error

Checkout -

func (*GitFetcherStub) Clone

func (gf *GitFetcherStub) Clone(repo, dir string) error

Clone -

type SimulatorHandlerMock added in v1.7.1

type SimulatorHandlerMock struct {
	GetInitialWalletKeysCalled  func() *dtos.InitialWalletKeys
	GenerateBlocksCalled        func(numOfBlocks int) error
	SetKeyValueForAddressCalled func(address string, keyValueMap map[string]string) error
	SetStateMultipleCalled      func(stateSlice []*dtos.AddressState) error
	AddValidatorKeysCalled      func(validatorsPrivateKeys [][]byte) error
}

SimulatorHandlerMock -

func (*SimulatorHandlerMock) AddValidatorKeys added in v1.7.1

func (mock *SimulatorHandlerMock) AddValidatorKeys(validatorsPrivateKeys [][]byte) error

AddValidatorKeys -

func (*SimulatorHandlerMock) GenerateBlocks added in v1.7.1

func (mock *SimulatorHandlerMock) GenerateBlocks(numOfBlocks int) error

GenerateBlocks -

func (*SimulatorHandlerMock) GetInitialWalletKeys added in v1.7.1

func (mock *SimulatorHandlerMock) GetInitialWalletKeys() *dtos.InitialWalletKeys

GetInitialWalletKeys -

func (*SimulatorHandlerMock) IsInterfaceNil added in v1.7.1

func (mock *SimulatorHandlerMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*SimulatorHandlerMock) SetKeyValueForAddress added in v1.7.1

func (mock *SimulatorHandlerMock) SetKeyValueForAddress(address string, keyValueMap map[string]string) error

SetKeyValueForAddress -

func (*SimulatorHandlerMock) SetStateMultiple added in v1.7.1

func (mock *SimulatorHandlerMock) SetStateMultiple(stateSlice []*dtos.AddressState) error

SetStateMultiple -

Jump to

Keyboard shortcuts

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