testhelper

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testhelper implements helpers for testing ensure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowAnyTestContexts

func AllowAnyTestContexts(t *testing.T)

AllowAnyTestContexts allows any test contexts to be used for the scope of t. It causes NewTestContext to fallback to the default testctx.New implementation.

func NewTestContext

func NewTestContext(t testctx.T, wrapEnsure testctx.WrapEnsure) testctx.Context

NewTestContext is called instead of testctx.New and is setup in ../../init_test.go. This shouldn't be used by anything else.

func SetTestContext

func SetTestContext(t *testing.T, targetT testctx.T, ctx testctx.Context)

SetTestContext connects the provided targetT to the provided context to be surfaced by NewTestContext. It is disconnected when t goes out of scope.

Types

This section is empty.

Jump to

Keyboard shortcuts

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