package
1.20.4
Repository: https://github.com/aws/smithy-go.git
Documentation: pkg.go.dev

# Packages

package xml is xml testing package that supports xml comparison utility.

# Functions

AssertHasHeader compares the header values and identifies if the actual header set includes all values specified in the expect set.
AssertHasHeaderKeys validates that header set contains all keys expected.
AssertHasQuery validates that the expected set of query items are present in the actual set.
AssertHasQueryKeys validates that the actual set of query items contains the keys provided.
AssertJSONEqual compares two JSON documents and identifies if the documents contain the same values.
AssertNotHaveHeaderKeys validates that header set does not contains any of the keys.
AssertNotHaveQueryKeys validates that the actual set of query items does not contains the keys provided.
AssertURLFormEqual compares two URLForm documents and identifies if the documents contain the same values.
AssertXMLEqual compares two XML documents and identifies if the documents contain the same values.
CompareCBOR checks whether two CBOR values are equivalent.
CompareCompressedBytes compares the request stream before and after possible request compression.
CompareJSONReaderBytes compares the reader containing serialized JSON document.
CompareReaderBytes compares the reader with the expected bytes.
CompareReaderEmpty checks if the reader is nil, or contains no bytes.
CompareReaders two io.Reader values together to determine if they are equal.
CompareURLFormReaderBytes compares the reader containing serialized URLForm document.
CompareValues compares two values to determine if they are equal, specialized for comparison of SDK operation output types.
CompareXMLReaderBytes compares the reader with expected xml byte.
No description provided by the author
HasHeader compares the header values and identifies if the actual header set includes all values specified in the expect set.
HasHeaderKeys validates that header set contains all keys expected.
HasQuery validates that the expected set of query items are present in the actual set.
HasQueryKeys validates that the actual set of query items contains the keys provided.
JSONEqual compares two JSON documents and identifies if the documents contain the same values.
NotHaveHeaderKeys validates that header set does not contains any of the keys.
NotHaveQueryKeys validates that the actual set of query items does not contain the keys provided.
ParseRawQuery returns a slice of QueryItems extracted from the raw query string.
URLFormEqual compares two URLForm documents and identifies if the documents contain the same values.
XMLEqual asserts two xml documents by sorting the XML and comparing the strings It returns an error in case of mismatch or in case of malformed xml found while sorting.

# Constants

Enumeration values for supported compress Algorithms.

# Structs

ByteLoop provides an io.ReadCloser that always fills the read byte slice with repeating value, until closed.
QueryItem provides an escaped key and value struct for values from a raw query string.

# Interfaces

T provides the testing interface for capturing failures with testing assert utilities.