testutils

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrokenRandomAlphaNumericString

func BrokenRandomAlphaNumericString(length int) string

BrokenRandomAlphaNumericString is broken so don't use it outside of tests

func BrokenRandomLowerAlphaString

func BrokenRandomLowerAlphaString(length int) string

func BuildRawCSV

func BuildRawCSV(numCol, numRow int) [][]string

func CreateTimeGen added in v0.3.0

func CreateTimeGen() func() time.Time

createTimeGen create a time generator that returns a timestamp that increase by 1 second each time it is called. This ensures that all commits have different timestamp.

func ModifiedCSV

func ModifiedCSV(orig [][]string, mPercent int) [][]string

func RandomSum added in v0.3.0

func RandomSum() [16]byte

func RawCSVReader

func RawCSVReader(r [][]string) *csv.Reader

func SecureRandomBytes

func SecureRandomBytes(length int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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