panicking

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package panicking provides an abstraction over panic behavior, enabling testing and mocking of panic-inducing code paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panicker

type Panicker interface {
	Panic(any)
	Panicf(format string, args ...any)
}

Panicker abstracts panic for our tests and such.

func NewProductionPanicker

func NewProductionPanicker() Panicker

NewProductionPanicker produces a production-ready panicker that will actually panic when called.

Directories

Path Synopsis
Package mockpanicking provides mock implementations of the panicking package's interfaces.
Package mockpanicking provides mock implementations of the panicking package's interfaces.

Jump to

Keyboard shortcuts

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