mockpanicking

package
v2.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panicker

type Panicker struct {
	mock.Mock
}

Panicker implements Panicker for tests.

func NewMockPanicker

func NewMockPanicker() *Panicker

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

func (*Panicker) Panic

func (p *Panicker) Panic(msg any)

Panic satisfies our interface.

func (*Panicker) Panicf

func (p *Panicker) Panicf(format string, args ...any)

Panicf satisfies our interface.

Jump to

Keyboard shortcuts

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