contract

package
v0.0.0-...-35a3740 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EquateApproxTimestamp

func EquateApproxTimestamp(margin time.Duration) cmp.Option

EquateApproxTimestamp returns a Comparer option that determines two non-zero proto timestamp values to be equal if they are within some margin of one another.

See also cmpopts.EquateApproxTime: https://pkg.go.dev/github.com/google/go-cmp/cmp/cmpopts?tab=doc#EquateApproxTime

func ProtoDiffOpts

func ProtoDiffOpts() []cmp.Option

ProtoDiffOpts returns cmp.Options suitable for diffing KMS proto messages.

func RandomID

func RandomID(t *testing.T) string

RandomID returns a string suitable for use as a KMS resource identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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