gentest

package
v0.0.0-...-a6f3d4c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomJSONAuth

func RandomJSONAuth(tokenType entity.TokenType) []byte

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

func RandomString

func RandomString(length int) string

func RandomToken

func RandomToken(tokenType entity.TokenType) entity.Token

RandomToken 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