helper

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Require

func Require(tb testing.TB, condition bool, v ...interface{})

require fails the test if the condition is false.

func Requiref

func Requiref(tb testing.TB, condition bool, format string, v ...interface{})

require fails the test if the condition is false.

func Whom added in v0.8.12

func Whom[T any](b bool, yes, no T) T

Whom is exactly same as C/C++ ternary operator. In Go it's implemented with generics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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