internal

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package internal exposes some common internal functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectPanic

func ExpectPanic(expectedError error, f func()) (bool, error)

ExpectPanic executes the function f with the expectation to recover from a panic. If no panic occurred or if the panic message is not the one expected, ExpectPanic returns (false, error).

Types

This section is empty.

Jump to

Keyboard shortcuts

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