assertion

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoCookieAssertions

func DoCookieAssertions(
	c *config.Case,
	cookies []*http.Cookie,
) (stats util.Stats)

func DoErrorAssertions

func DoErrorAssertions(c *config.Case, err error) (stats util.Stats)

func DoHTMLAssertions

func DoHTMLAssertions(body []byte, htmls []config.AssertHTML) (stats util.Stats)

func DoHeaderAssertions

func DoHeaderAssertions(c *config.Case, respHeader http.Header) (stats util.Stats)

func DoJSONAssertions

func DoJSONAssertions(jsonData interface{}, jsons []config.AssertJSON) (stats util.Stats)

func DoKeysAssertion

func DoKeysAssertion(
	allKeys *util.StringSet,
	resp *http.Response,
	c *config.Case,
	redirectCount int64,
	latency int64,
	contentType string,
	body []byte,
) (stats util.Stats)

func DoTOMLAssertions

func DoTOMLAssertions(body []byte, tomls []config.AssertTOML) (stats util.Stats)

func DoXMLAssertions

func DoXMLAssertions(body []byte, xmls []config.AssertXML) (stats util.Stats)

func DoYAMLAssertions

func DoYAMLAssertions(body []byte, yamls []config.AssertYAML) (stats util.Stats)

Types

type Ctx

type Ctx struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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