is

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 7 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 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 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

This section is empty.

Jump to

Keyboard shortcuts

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