mockutils

package
v0.0.0-...-5ea965e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetadataResultComparator = metadataResultComparator{}
View Source
var ReadResultComparator = readResultComparator{}
View Source
var WriteResultComparator = writeResultComparator{}

Functions

func DoesObjectCorrespondToString

func DoesObjectCorrespondToString(object any, correspondent string) bool

func NoErrors

func NoErrors(t *testing.T, err error)

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

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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