package
1.10.20
Repository: https://github.com/jadekler/aws-sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package unit performs initialization and validation for unit tests.

# Functions

AssertJSON verifies that the expect json string matches the actual.
AssertQuery verifies the expect HTTP query string matches the actual.
AssertURL verifies the expected URL is matches the actual.
AssertXML verifies that the expect xml string matches the actual.
CleanupTLSBundleFiles takes variadic list of files to be deleted.
CreateTLSBundleFiles returns the temporary filenames for the certificate key, and CA PEM content.
CreateTLSServer will create the TLS server on an open port using the certificate and key.
Match is a testing helper to test for testing error by comparing expected with a regular expression.
NewClient creates and initializes a generic service client for testing.
PopEnv takes the list of the environment values and injects them into the process's environment variable data.
SortedKeys returns a sorted slice of keys of a map.
SprintExpectActual returns a string for test failure cases when the actual value is not the same as the expected.
StashEnv stashes the current environment variables and returns an array of all environment values as key=val strings.

# Variables

TLSBundleCA ca.crt.
TLSBundleCert ai.crt.
TLSBundleKey ai.key.

# Structs

A FakeContext provides a simple stub implementation of a Context.
ReadCloser is a io.ReadCloser for unit testing.
ZeroReader is a io.Reader which will always write zeros to the byte slice provided.