custommatchers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemanticEqualityMatcher

type SemanticEqualityMatcher struct {
	Expected interface{}
}

func SemanticallyEqual

func SemanticallyEqual(expected interface{}) *SemanticEqualityMatcher

func (*SemanticEqualityMatcher) FailureMessage

func (matcher *SemanticEqualityMatcher) FailureMessage(actual interface{}) (message string)

func (*SemanticEqualityMatcher) Match

func (matcher *SemanticEqualityMatcher) Match(actual interface{}) (success bool, err error)

func (*SemanticEqualityMatcher) NegatedFailureMessage

func (matcher *SemanticEqualityMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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