Documentation ¶
Index ¶
- Constants
- func AssertBytesEqual(t *testing.T, a, b [][]byte, ignoreOrder bool)
- func AssertTimeEqual(t *testing.T, expected, actual time.Time, msgAndArgs ...interface{})
- func BrokenRandomAlphaNumericString(length int) string
- func BrokenRandomLowerAlphaString(length int) string
- func BuildRawCSV(numCol, numRow int) [][]string
- func ChTempDir(t *testing.T) (name string, cleanup func())
- func CreateSQLDB(t *testing.T, createTableStatements []string) (db *sql.DB, stop func())
- func CreateTimeGen() func() time.Time
- func ModifiedCSV(orig [][]string, mPercent int) [][]string
- func RandomEmail() string
- func RandomSum() [16]byte
- func RawCSVBytesReader(r [][]string) io.Reader
- func RawCSVReader(r [][]string) *csv.Reader
- func Retry(t *testing.T, dur time.Duration, count int, cond func() bool, message string, ...)
- func SecureRandomBytes(length int) []byte
- func TempDir(dir, pattern string) (string, error)
- func TempFile(dir, pattern string) (*os.File, error)
Constants ¶
View Source
const (
LowerAlphaBytes = "abcdefghijklmnopqrstuvwxyz"
)
Variables ¶
This section is empty.
Functions ¶
func AssertBytesEqual ¶ added in v0.8.4
func AssertTimeEqual ¶ added in v0.10.1
func BrokenRandomAlphaNumericString ¶
BrokenRandomAlphaNumericString is broken so don't use it outside of tests
func BuildRawCSV ¶
func CreateSQLDB ¶ added in v0.13.0
func CreateTimeGen ¶
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 RandomEmail ¶
func RandomEmail() string
func RawCSVBytesReader ¶ added in v0.10.1
func RawCSVReader ¶
func SecureRandomBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.