message

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package message provides functions for generating formatted messages for assertions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBool

func FromBool(callerStackIndex int, result bool) (string, error)

FromBool generates a customized message string based on a boolean result and caller information.

`callerStackIndex` specifies the depth in the call stack to retrieve the caller information. This is used to identify the source code location of the assertion. `result` is the boolean value for which to generate the message.

It returns a formatted message string and an error if one occurred during the process. The message string will be tailored based on the expression used in the assertion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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