testscommon

package
v1.7.3 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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