testutil

package
v0.0.0-...-3ca1276 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callers

func Callers() string

Callers prints the stack trace of everything up to the line where it was called.

func Diff

func Diff[T any](got, want T) string

Diff compares two items and returns a human-readable diff string. If the items are equal, it returns an empty string.

func RandomAlphaNumeric

func RandomAlphaNumeric(n int) string

RandomAlphaNumeric generates a random alphanumeric string of length n.

func RandomDigits

func RandomDigits(n int) string

RandomDigits generates a random numerical string of length n.

func RandomEmail

func RandomEmail() string

RandomEmail generates a random email address.

func RandomFullName

func RandomFullName() string

Random FullName generates a random full name.

func RandomPhoneNumber

func RandomPhoneNumber() string

RandomPhoneNumber generates a random phone number.

func RandomString

func RandomString(n int) string

RandomString generates a random alphabetical string of length n.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳