test

package
v2.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(t *testing.T, wantErr bool, errContains string, err error)

CheckErr -

Types

type GoTezosMock

type GoTezosMock struct {
	gotezos.IFace
	HeadErr               bool
	CounterErr            bool
	BalanceErr            bool
	FrozenBalanceErr      bool
	DelegatedContractsErr bool
	CycleErr              bool
	StakingBalanceErr     bool
	InjectionOperationErr bool
	OperationHashesErr    bool
	ForgeOperationErr     bool
}

GoTezosMock is a test helper mocking the GoTezos lib

func (*GoTezosMock) Balance

func (g *GoTezosMock) Balance(blockhash, address string) (*big.Int, error)

Balance -

func (*GoTezosMock) Counter

func (g *GoTezosMock) Counter(blockhash, pkh string) (int, error)

Counter -

func (*GoTezosMock) Cycle

func (g *GoTezosMock) Cycle(cycle int) (gotezos.Cycle, error)

Cycle -

func (*GoTezosMock) DelegatedContractsAtCycle

func (g *GoTezosMock) DelegatedContractsAtCycle(cycle int, delegate string) ([]*string, error)

DelegatedContractsAtCycle -

func (*GoTezosMock) FrozenBalance

func (g *GoTezosMock) FrozenBalance(cycle int, delegate string) (gotezos.FrozenBalance, error)

FrozenBalance -

func (*GoTezosMock) Head

func (g *GoTezosMock) Head() (*gotezos.Block, error)

Head -

func (*GoTezosMock) InjectionOperation

func (g *GoTezosMock) InjectionOperation(input gotezos.InjectionOperationInput) ([]byte, error)

InjectionOperation -

func (*GoTezosMock) OperationHashes

func (g *GoTezosMock) OperationHashes(blockhash string) ([][]string, error)

OperationHashes -

func (*GoTezosMock) StakingBalance

func (g *GoTezosMock) StakingBalance(blockhash, delegate string) (*big.Int, error)

StakingBalance -

Jump to

Keyboard shortcuts

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