testx

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context added in v0.2.0

func Context(t DeadlineHelper) context.Context

func ResultOf

func ResultOf[T any](tb testing.TB, f func() (T, error)) T

func ResultOfA

func ResultOfA[T any](tb testing.TB, f any, args ...any) (t T)

Types

type DeadlineHelper added in v0.2.0

type DeadlineHelper interface {
	Helper()
	Deadline() (deadline time.Time, ok bool)
	Cleanup(f func())
}

Jump to

Keyboard shortcuts

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