assert

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(ctx context.Context, value bool, errorMessage string, attributes ...any)

Panics if the given value is false.

func AssertErrNil

func AssertErrNil(ctx context.Context, err error, customErrorMessage string, attributes ...any)

Panics if the given error isn't nil.

func AssertNil

func AssertNil(ctx context.Context, value any, errorMessage string, attributes ...any)

Panics if the given value isn't nil.

func AssertNotNil

func AssertNotNil(ctx context.Context, value any, errorMessage string, attributes ...any)

Panics if the given value is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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