test_utils

package
v0.0.0-...-35a8ded Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsecutiveBlobs

func ConsecutiveBlobs(t require.TestingT, n ...int) [][]byte

ConsecutiveBlobs (t, i, j, k) produces three blobs from the ranges [0:i], [i:i+j], [i+j:i+j+k] of test blocks each block is in its own batch

func GenTestBlob

func GenTestBlob(t require.TestingT, maxNbBlocks int) []byte

func GetDict

func GetDict(t require.TestingT) []byte

func GetRepoRootPath

func GetRepoRootPath() (string, error)

GetRepoRootPath assumes that current working directory is within the repo

func LoadTestBlocks

func LoadTestBlocks(testDataDir string) (testBlocks [][]byte, err error)

func RandIntn

func RandIntn(n int) int

func SingleBlockBlob

func SingleBlockBlob(t require.TestingT) []byte

func TestBlocksAndBlobMaker

func TestBlocksAndBlobMaker(t require.TestingT) ([][]byte, *v1.BlobMaker)

func TinyTwoBatchBlob

func TinyTwoBatchBlob(t require.TestingT) []byte

TinyTwoBatchBlob produces a blob with two batches, each consisting of one block

Types

This section is empty.

Jump to

Keyboard shortcuts

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