internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expect

func Expect[A any](t testing.TB, actual A, m Matcher[A])

Types

type Matcher

type Matcher[A any] interface {
	Action() string
	Match(A) bool
	Negative() bool
}

func NewMatcher

func NewMatcher[A any](action string, match func(A) bool) Matcher[A]

func Not

func Not[T any](matcher Matcher[T]) Matcher[T]

type MatcherNewer

type MatcherNewer[A any, E any] func(e E) Matcher[A]

func NewComparedMatcher

func NewComparedMatcher[A any, E any](action string, match func(A, E) bool) MatcherNewer[A, E]

type NormalizedExpectedMatcher

type NormalizedExpectedMatcher interface {
	NormalizeExpect() any
}

type NormalizedMatcher

type NormalizedMatcher[T any] interface {
	NormalizeActual(T) any
}

Jump to

Keyboard shortcuts

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