deeptest

package
v1.1.0-beta.0...-384f858 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeepClonedEqual

func AssertDeepClonedEqual[T any](t require.TestingT, valA, valB T, opts ...Option)

AssertDeepClonedEqual tells whether a and b are deeply equal.

func AssertRecursivelyNotEqual

func AssertRecursivelyNotEqual[T any](t require.TestingT, valA, valB T, opts ...Option)

AssertRecursivelyNotEqual asserts that every field of `a` is not equal to the corresponding field of `b` deeply.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is the option for the deep test.

func WithIgnorePath

func WithIgnorePath(ignorePath []string) Option

WithIgnorePath specifies the paths that should be ignored during the deep test.

func WithPointerComparePath

func WithPointerComparePath(pointerComparePath []string) Option

WithPointerComparePath specifies the paths that should be compared by pointer during the deep test.

Jump to

Keyboard shortcuts

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