Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var MetadataResultComparator = metadataResultComparator{}
var ReadResultComparator = readResultComparator{}
var WriteResultComparator = writeResultComparator{}
Functions ¶
func ValidateReadConformsMetadata ¶
func ValidateReadConformsMetadata(objectName string, readResponse map[string]any, metadata *common.ListObjectMetadataResult, ) error
ValidateReadConformsMetadata this will check that all the fields that were returned by `Read` method are a subset of ObjectMetadata. It is possible that Read will not return all the possible fields which is fine and not a cause for an error. However, it will return a Joined error for every Read field that is missing in Metadata.
Types ¶
type ExpectedSubsetErrors ¶
type ExpectedSubsetErrors []error
ExpectedSubsetErrors represents a collection of errors expected to be found within a target wrapped error. Instead of constructing and comparing a full wrapped error stack, this `error type` focuses on verifying that critical errors are present in the wrapped Go error.
By using this type, you dictate to the testing code to perform subset comparison via `errors.Is`.
func (ExpectedSubsetErrors) Error ¶
func (e ExpectedSubsetErrors) Error() string