package
0.29.22
Repository: https://github.com/openconfig/ygot.git
Documentation: pkg.go.dev

# Functions

GenerateUnifiedDiff takes two strings and generates a diff that can be shown to the user in a test error message.
GetResponseEqual compares the contents of a and b and returns true if they are equal.
JSONIETFComparer compares the two provided JSON IETF TypedValues to determine whether their contents are the same.
NotificationComparer returns a cmp.Option that can be used to compare two gnmipb.Notification messages where the order of updates and deletes are not significant.
NotificationLess compares the two notifications a and b, returning true if a is less than b, and false if not.
NotificationSetEqual compares the contents of a and b and returns true if they are equal.
PathLess provides a function which determines whether a gNMI Path messages A is less than the gNMI Path message b.
SubscribeResponseEqual compares the contents of a and b and returns true if they are equal.
SubscribeResponseSetEqual compares the contents of the slices of SubscribeResponse messages in a and b and returns true if they are equal.
UpdateLess compares two gNMI Update messages and returns true if a < b.
UpdateSetEqual compares the contents of a and b and returns true if they are equal.

# Structs

IgnoreTimestamp is a comparison option that ignores timestamp values in gNMI messages.
UnionUnsupported is an interface{} wrapper type for unsupported types.

# Interfaces

ComparerOpt is an interface that all comparison options must implement.
TestUnion is an interface defined within *this* (testutil) package that is satisfied by a subset of the above union types to aid testing within other packages.

# Type aliases

Binary is a type that is used for fields that have a YANG type of binary.
CustomComparer allows for a comparer for a particular type to be overloaded such that an external caller can inject a new way to compare a specific field of a gNMI message.
UnionBool is a bool type assignable to unions of which it is a subtype.
UnionFloat64 is a float64 type assignable to unions of which it is a subtype.
UnionInt16 is an int16 type assignable to unions of which it is a subtype.
UnionInt32 is an int32 type assignable to unions of which it is a subtype.
UnionInt64 is an int64 type assignable to unions of which it is a subtype.
UnionInt8 is an int8 type assignable to unions of which it is a subtype.
UnionString is a string type assignable to unions of which it is a subtype.
UnionUint16 is a uint16 type assignable to unions of which it is a subtype.
UnionUint32 is a uint32 type assignable to unions of which it is a subtype.
UnionUint64 is a uint64 type assignable to unions of which it is a subtype.
UnionUint8 is a uint8 type assignable to unions of which it is a subtype.
YANGEmpty is a type that is used for fields that have a YANG type of empty.