assert

package
v0.0.0-...-c8cb9eb Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoErrors

func NoErrors(errorList ...error) error

NoErrors check that all errors are nil.

func That

func That(ok bool, message string) error

Types

type FailedError

type FailedError struct {
	// contains filtered or unexported fields
}

func (*FailedError) Error

func (err *FailedError) Error() string

func (*FailedError) String

func (err *FailedError) String() string

func (*FailedError) Unwrap

func (err *FailedError) Unwrap() error

type IfAssertion

type IfAssertion struct{}

func If

func If(ok bool) *IfAssertion

If creates new conditional assertion.

func (*IfAssertion) Then

func (assertion *IfAssertion) Then(ok bool, message string) error

Then checks that result of expression is true. Otherwise, returns assertion error.

Jump to

Keyboard shortcuts

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