mock

package
v0.0.0-...-9518a5e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT 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 interface{})

Panic satisfies our interface.

func (*Panicker) Panicf

func (p *Panicker) Panicf(format string, args ...interface{})

Panicf satisfies our interface.

Jump to

Keyboard shortcuts

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