gofixture

package module
v0.0.0-...-3c4664f Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyByte

func AnyByte() byte

AnyByte returns any byte

func AnyByteExcept

func AnyByteExcept(current byte) (output byte)

AnyByteExcept returns any byte except the provided one

func AnyByteLessThan

func AnyByteLessThan(limit byte) (output byte)

AnyByteLessThan returns any byte less than the provided one

func AnyBytes

func AnyBytes(length int) []byte

AnyBytes creates a byte slice of the specified length with any values

func AnyInt

func AnyInt() int

AnyInt returns any integer

func AnyIntBetween

func AnyIntBetween(min, max int) int

AnyIntBetween returns a random positive integer between minimum and maximum values

func AnyInts

func AnyInts(length int) (output []int)

AnyInts returns an int slice with the specified length and random values

func AnyRune

func AnyRune() rune

AnyRune returns any rune

func AnyString

func AnyString(length int) string

AnyString returns an string with the specified length

func AnyUints16

func AnyUints16(length int) (output []uint16)

AnyUints16 returns an int16 slice with the specified length and random values

func AnyValidRune

func AnyValidRune() rune

AnyValidRune returns any valid rune

func Bytes

func Bytes(length int) []byte

Bytes creates a byte slice of the specified length with predictable values {0, ..., 255, 0, ...}

func Ints

func Ints(length int) (output []int)

Ints returns an int slice with the specified length

func NextValidRune

func NextValidRune(current rune) rune

NextValidRune returns the next non-control rune after the current one

func String

func String(length int) string

String creates a string of the specified length with predictable values from StringRunes sequentially

func ValidRune

func ValidRune(r rune) bool

ValidRune returns true if a rune is valid and not a control character

func ZeroBytes

func ZeroBytes(length int) []byte

ZeroBytes creates a byte slice of the specified length filled with zeroes

Types

This section is empty.

Jump to

Keyboard shortcuts

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