package
1.36.2
Repository: https://github.com/onsi/gomega.git
Documentation: pkg.go.dev

# Functions

IndentString takes a string and indents each line by the specified amount.
Generates a formatted matcher success/failure message of the form: Expected <pretty printed actual> <message> <pretty printed expected> If expected is omitted, then the message looks like: Expected <pretty printed actual> <message> */.
Pretty prints the passed in object at the passed in indentation level.
RegisterCustomFormatter registers a CustomFormatter and returns a CustomFormatterKey You can call UnregisterCustomFormatter with the returned key to unregister the associated CustomFormatter */.
UnregisterCustomFormatter unregisters a previously registered CustomFormatter.

# Variables

CharactersAroundMismatchToInclude (default 5) specifies how many contextual characters should be printed before and after the first diff location in a truncated string assertion error message.
The default indentation string emitted by the format package.
Use MaxDepth to set the maximum recursion depth when printing deeply nested objects.
MaxLength of the string representation of an object.
Print the content of context objects.
TruncatedDiff choose if we should display a truncated pretty diff or not.
TruncateThreshold (default 50) specifies the maximum length string to print in string comparison assertion error messages.
By default, all objects (even those that implement fmt.Stringer and fmt.GoStringer) are recursively inspected to generate output.

# Interfaces

GomegaStringer allows for custom formating of objects for gomega.

# Type aliases

CustomFormatters can be registered with Gomega via RegisterCustomFormatter() Any value to be rendered by Gomega is passed to each registered CustomFormatters.