gentest

package
v0.0.0-...-d68cca1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomHash

func RandomHash(len int) []byte

RandomEntity returns a random hashed string and panics on error. It should be used ONLY for testing.

func RandomJSONUser

func RandomJSONUser(titleLen, emailLen, passLen int) []byte

RandomEntity returns a random Entity marshaled to JSON and panics on error. It should be used ONLY for testing.

func RandomString

func RandomString(length int) string

func RandomUser

func RandomUser(nameLen, emailLen, passLen int) entity.User

RandomUser panics on hardware error. It should be used ONLY for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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