testfactory

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSubArray

func CheckSubArray(txList []types.Tx, subTxList []types.Tx) bool

CheckSubArray returns whether subTxList is a subarray of txList

func GenerateRandomTxs

func GenerateRandomTxs(count, size int) types.Txs

func GenerateRandomlySizedTxs

func GenerateRandomlySizedTxs(count, maxSize int) types.Txs

func GetRandomSubSlice

func GetRandomSubSlice(size int) (start int, length int)

GetRandomSubSlice returns two integers representing a randomly sized range in the interval [0, size]

Types

This section is empty.

Jump to

Keyboard shortcuts

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