ret

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockerFieldIdx

func BlockerFieldIdx(mock any) int

BlockerFieldIdx returns the index of the Blocker field, if any.

func PanickerFieldIdx added in v0.6.0

func PanickerFieldIdx(mock any) int

PanickerFieldIdx returns the index of the Panicker field, if any.

Types

type Blocker

type Blocker chan struct{}

Blocker is a type which can be used in hel mocks to block method returns. When the return is unblocked, the channel is expected to have a value buffered.

type Panicker added in v0.6.0

type Panicker chan any

Panicker is a type which can be used in hel mocks to panic method calls. This allows hel to queue a panic instead of a normal method call. Nil values are considered normal returns.

Jump to

Keyboard shortcuts

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