Documentation ¶
Index ¶
- Constants
- func Assert(t *testing.T, message string, isOk bool)
- func AssertBytesEqual(t *testing.T, expected, actual []byte)
- func AssertEncodingStable(t *testing.T, expected []byte, encoder func(io.Writer))
- func AssertEquals(t *testing.T, message string, expected, actual interface{})
- func AssertLenEquals(t *testing.T, expected int, hasLen interface{})
- func AssertNil(t *testing.T, x interface{})
- func AssertNonNil(t *testing.T, x interface{})
- func AssertVerboseErrorIsNil(t *testing.T, err error)
- func DebugLine(t *testing.T)
- func GenCount(rand *rand.Rand, size int) int
- func GenCountRange(rand *rand.Rand, min, max int) int
- func Insert(old, ins string, pos int) string
- func LogDiff(old, new string) bool
- func Rand() *rand.Rand
- func RandEscape(rand *rand.Rand) string
- func RandKey(rand *rand.Rand, max int) string
- func RandLetters(rand *rand.Rand, max int) string
- func RandLettersRange(rand *rand.Rand, min, max int) string
- func RandPoint(rand *rand.Rand, max int) string
- func RandStr(rand *rand.Rand, elements string, min, max int) string
- func Trim(err error) string
- func WaitGroupTimeout(t *testing.T, wg *sync.WaitGroup, timeout time.Duration)
Constants ¶
View Source
const ENCODE_REPEAT_COUNT = 20
View Source
const KEY_SYMS = constants.ALPHABET + constants.DIGITS
Variables ¶
This section is empty.
Functions ¶
func AssertBytesEqual ¶
func AssertEncodingStable ¶
func AssertEquals ¶
func AssertLenEquals ¶
func AssertNonNil ¶
func AssertVerboseErrorIsNil ¶
func GenCountRange ¶
Generate count of sample data.
func RandEscape ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.