Documentation
¶
Index ¶
- Variables
- func Always(v bool) bool
- func Equals[T comparable](a, b T, context ...any)
- func LessOrEquals[T cmp.Ordered](a, b T, context ...any)
- func LessThan[T cmp.Ordered](a, b T, context ...any)
- func MoreOrEquals[T cmp.Ordered](a, b T, context ...any)
- func MoreThan[T cmp.Ordered](a, b T, context ...any)
- func Never(v bool) bool
- func Nil(v any, context ...any)
- func NotEquals[T comparable](a, b T, context ...any)
- func NotNil(v any, context ...any)
Constants ¶
This section is empty.
Variables ¶
View Source
var ArgumentColor = ansiCyan
View Source
var ContextColor = ansiGray
View Source
var ContextWindow int = 5
ContextWindow represents the number of source code lines to display above and below the line that caused the assertion failure.
View Source
var LineColor = ansiRed
View Source
var MaxTraceDepth int = 20
MaxTraceDepth represents the maximum number of stack frames to display in the stack trace.
View Source
var ReturnValue int = 1
ReturnValue represents the exit code to use when an assertion fails.
View Source
var SectionTitleColor = ansiUnderline + ansiBold
View Source
var StackColor = ansiGray
View Source
var Writer io.Writer = os.Stderr
Functions ¶
func Equals ¶
func Equals[T comparable](a, b T, context ...any)
func LessOrEquals ¶
func MoreOrEquals ¶
func NotEquals ¶
func NotEquals[T comparable](a, b T, context ...any)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.