cc

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

README

CheckConditions, a test framework library

Go Reference Go Report Card CI

See examples/map_test.go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker[Type any] func(t checker, got Type)

func AllOf

func AllOf[Type any](asserts ...Checker[Type]) Checker[Type]

func AsError added in v0.2.1

func AsError[Want error]() Checker[error]

func Contain

func Contain[Type comparable](want Type) Checker[[]Type]

func Equal added in v0.2.1

func Equal[Type any](want Type) Checker[Type]

func Func

func Func[Type any](passing func(t testing.TB, got Type)) Checker[Type]

func IsError added in v0.2.1

func IsError(want error) Checker[error]

func IsNil added in v0.2.1

func IsNil[Type any]() Checker[Type]

func Len

func Len[Type any](want int) Checker[[]Type]

func (Checker[Type]) Ensure

func (c Checker[Type]) Ensure(t testing.TB, got Type)

func (Checker[Type]) Want

func (c Checker[Type]) Want(t testing.TB, got Type)

Jump to

Keyboard shortcuts

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