is

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var False = CreateMatcher[bool](equalsMatch(false), messages.ExpectedButActual(false))
View Source
var Nil = CreateMatcher[any](nilMatch, messages.ExpectedButActual[any](nil))
View Source
var NotNil = CreateNotMatcher[any](nilMatch, messages.ExpectedOtherThan[any](nil))
View Source
var True = CreateMatcher[bool](equalsMatch(true), messages.ExpectedButActual(true))

Functions

func DeepEqualTo

func DeepEqualTo[T any](expected T) Matcher[T]

func EqualTo

func EqualTo[T any](expected T) Matcher[T]

func EqualToC

func EqualToC[T any](expected T, comparer equality.Comparer[T]) Matcher[T]

func EquivalentTo

func EquivalentTo[T any](expected []T) Matcher[[]T]

func EquivalentToC

func EquivalentToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]

func GreaterThan added in v2.4.1

func GreaterThan[T Numeric](expected T) Matcher[T]

func GreaterThanOrEqualTo added in v2.4.1

func GreaterThanOrEqualTo[T Numeric](expected T) Matcher[T]

func Kind added in v2.2.0

func Kind(expected reflect.Kind) Matcher[any]

func LessThan added in v2.4.1

func LessThan[T Numeric](expected T) Matcher[T]

func LessThanOrEqualTo added in v2.4.1

func LessThanOrEqualTo[T Numeric](expected T) Matcher[T]

func ListEqualTo

func ListEqualTo[T any](expected []T) Matcher[[]T]

func ListEqualToC

func ListEqualToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]

func NotDeepEqualTo

func NotDeepEqualTo[T any](expected T) Matcher[T]

func NotEqualTo

func NotEqualTo[T any](expected T) Matcher[T]

func NotEqualToC

func NotEqualToC[T any](expected T, comparer equality.Comparer[T]) Matcher[T]

func NotEquivalentTo

func NotEquivalentTo[T any](expected []T) Matcher[[]T]

func NotEquivalentToC

func NotEquivalentToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]

func NotKind added in v2.2.0

func NotKind(expected reflect.Kind) Matcher[any]

func NotListEqualTo

func NotListEqualTo[T any](expected []T) Matcher[[]T]

func NotListEqualToC

func NotListEqualToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]

func NotType

func NotType(expected reflect.Type) Matcher[any]

func Type

func Type(expected reflect.Type) Matcher[any]

Types

type Numeric added in v2.4.1

type Numeric interface {
	constraints.Integer | constraints.Float
}

Jump to

Keyboard shortcuts

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