testhelpers

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrExpected

func ErrExpected(conditions ...bool) bool

func ErrIfTrue

func ErrIfTrue(condition bool) error

func ErrOr1Val

func ErrOr1Val[T interface{}](val T, condition bool) (T, error)

func NewTestContext

func NewTestContext() *contexts.Context

func OptStructTest

func OptStructTest[T interface{}](t runnableTB)

func ValOrDefault

func ValOrDefault[T comparable](val T, defaultVal T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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