assertx

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package assertx provides testing assertion extensions augmenting github.com/alecthomas/assert/v2.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanicsWithValue

func PanicsWithValue(tb testing.TB, expected any, action func(), msgAndArgs ...any)

PanicsWithValue asserts that action panics and that the recovered value equals expected.

func Unreachable

func Unreachable(tb testing.TB, msgAndArgs ...any)

Unreachable asserts that a code location was not reached, failing the test immediately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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