awstesting

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJSON

func AssertJSON(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool

AssertJSON verifies that the expect json string matches the actual.

func AssertQuery

func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool

AssertQuery verifies the expect HTTP query string matches the actual.

func AssertURL

func AssertURL(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool

AssertURL verifies the expected URL is matches the actual.

func AssertXML

func AssertXML(t *testing.T, expect, actual string, container interface{}, msgAndArgs ...interface{}) bool

AssertXML verifies that the expect xml string matches the actual.

func GenerateAssertions

func GenerateAssertions(out interface{}, shape *api.Shape, prefix string) string

GenerateAssertions builds assertions for a shape based on its type.

The shape's recursive values also will have assertions generated for them.

func Match

func Match(t *testing.T, regex, expected string)

Match is a testing helper to test for testing error by comparing expected with a regular expression.

func ParamsStructFromJSON

func ParamsStructFromJSON(value interface{}, shape *api.Shape, prefixPackageName bool) string

ParamsStructFromJSON returns a JSON string representation of a structure.

func SortedKeys

func SortedKeys(m map[string]interface{}) []string

SortedKeys returns a sorted slice of keys of a map.

Types

This section is empty.

Directories

Path Synopsis
Package integration performs initialization and validation for integration tests.
Package integration performs initialization and validation for integration tests.
Package unit performs initialization and validation for unit tests
Package unit performs initialization and validation for unit tests

Jump to

Keyboard shortcuts

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