testfail

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testfail provides testing helpers for expected tests failures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expected

func Expected(t testtb.TB, reason string) testtb.TB

Expected return a new TB instance that expects the test to fail.

At the end of the test, if it was marked as failed, it will pass instead. If it passes, it will be failed, so that Expected call can be removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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