gomegautil

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SemanticallyEqual

func SemanticallyEqual(expected any) types.GomegaMatcher

SemanticallyEqual is like reflect.DeepEqual, but focused on semantic equality instead of memory equality. If objects differ a diff will be produced thanks to diff.ObjectDiff for more information about semantically equality please take a look at diff.SemanticallyEqual.

Types

type SemanticallyEqualMatcher

type SemanticallyEqualMatcher struct {
	// contains filtered or unexported fields
}

func (*SemanticallyEqualMatcher) FailureMessage

func (matcher *SemanticallyEqualMatcher) FailureMessage(actual any) (message string)

func (*SemanticallyEqualMatcher) Match

func (matcher *SemanticallyEqualMatcher) Match(actual any) (success bool, err error)

func (*SemanticallyEqualMatcher) NegatedFailureMessage

func (matcher *SemanticallyEqualMatcher) NegatedFailureMessage(actual any) (message string)

Jump to

Keyboard shortcuts

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