is

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func DeepEqualTo

func DeepEqualTo(expected interface{}) Matcher

func EqualTo

func EqualTo(expected interface{}) Matcher

func EqualToC

func EqualToC(expected interface{}, equality CustomEquality) Matcher

func EquivalentTo

func EquivalentTo(expected interface{}) Matcher

func EquivalentToC

func EquivalentToC(expected interface{}, equality CustomEquality) Matcher

func NotDeepEqualTo

func NotDeepEqualTo(expected interface{}) Matcher

func NotEqualTo

func NotEqualTo(expected interface{}) Matcher

func NotEqualToC

func NotEqualToC(expected interface{}, equality CustomEquality) Matcher

func NotEquivalentTo

func NotEquivalentTo(expected interface{}) Matcher

func NotEquivalentToC

func NotEquivalentToC(expected interface{}, equality CustomEquality) Matcher

func NotType

func NotType(expected reflect.Type) Matcher

func Type

func Type(expected reflect.Type) Matcher

Types

type CustomEquality

type CustomEquality func(act, exp interface{}) bool

Jump to

Keyboard shortcuts

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