test

package
v1.24.0-basal-automated.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: BSD-3-Clause Imports: 4 Imported by: 20

Documentation

Index

Constants

View Source
const (
	CharsetUppercase    = "ABCDEFGHIJKLMNOPQRSTUVWYXZ"
	CharsetLowercase    = "abcdefghijklmnopqrstuvwxyz"
	CharsetNumeric      = "1234567890"
	CharsetWhitespace   = " "
	CharsetSymbols      = "!\"#$%&'()*+,-./:;<=>@\\]^_`{|}~"
	CharsetAlpha        = CharsetUppercase + CharsetLowercase
	CharsetAlphaNumeric = CharsetUppercase + CharsetLowercase + CharsetNumeric
	CharsetText         = CharsetAlphaNumeric + CharsetWhitespace + CharsetSymbols
)
View Source
const TimeLimit = 365 * 24 * time.Hour

Variables

This section is empty.

Functions

func CloneFloat64 added in v1.24.0

func CloneFloat64(datum *float64) *float64

func CloneInt added in v1.24.0

func CloneInt(datum *int) *int

func CloneString added in v1.24.0

func CloneString(datum *string) *string

func CloneStringArray added in v1.24.0

func CloneStringArray(datum *[]string) *[]string

func NewString

func NewString(length int, charset string) string

func NewText

func NewText(minimumLength int, maximumLength int) string

func NewTime added in v1.24.0

func NewTime() time.Time

func NewTimeInRange added in v1.24.0

func NewTimeInRange(earliest time.Time, latest time.Time) time.Time

func NewTimeZone added in v1.24.0

func NewTimeZone() string

func NewVariableString

func NewVariableString(minimumLength int, maximumLength int, charset string) string

func RandomFloat64FromRange added in v1.24.0

func RandomFloat64FromRange(minimum float64, maximum float64) float64

func RandomIntFromRange added in v1.24.0

func RandomIntFromRange(minimum int, maximum int) int

func RandomStringArrayFromStringArray added in v1.24.0

func RandomStringArrayFromStringArray(minimumLength int, maximumLength int, duplicates bool, strs []string) []string

func RandomStringFromStringArray added in v1.24.0

func RandomStringFromStringArray(strs []string) string

func TimeMaximum added in v1.24.0

func TimeMaximum() time.Time

func TimeMinimum added in v1.24.0

func TimeMinimum() time.Time

func TimeZones added in v1.24.0

func TimeZones() []string

Types

type Mock

type Mock struct {
	ID string
}

func NewMock

func NewMock() *Mock

func (*Mock) Expectations

func (m *Mock) Expectations()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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