equality

package
v3.0.0-...-b0a9388 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Semantic = conversion.EqualitiesOrDie(
	func(a, b resource.Quantity) bool {
		return a.Cmp(b) == 0
	},
	func(a, b *semverlib.Version) bool {
		if a == nil && b == nil {
			return true
		}

		if a != nil && b != nil {
			return a.Equal(b)
		}

		return false
	},
	func(a, b time.Time) bool {
		return a.UTC() == b.UTC()
	},
)

Semantic can do semantic deep equality checks for objects. Example: equality.Semantic.DeepEqual(aPod, aPodWithNonNilButEmptyMaps) == true.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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