Documentation ¶
Overview ¶
Package utilassert provides testing assertion generation functions.
Index ¶
- func AssertJSON(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool
- func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool
- func AssertURL(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool
- func AssertXML(t *testing.T, expect, actual string, container interface{}, ...) bool
- func GenerateAssertions(out interface{}, shape *api.Shape, prefix string) string
- func Match(t *testing.T, regex, expected string)
- type Imported
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertJSON ¶ added in v0.9.15
AssertJSON verifies that the expect json string matches the actual.
func AssertQuery ¶ added in v0.9.15
AssertQuery verifies the expect HTTP query string matches the actual.
func AssertXML ¶ added in v0.9.15
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 ¶
GenerateAssertions builds assertions for a shape based on its type.
The shape's recursive values also will have assertions generated for them.
Types ¶
Click to show internal directories.
Click to hide internal directories.