assertion

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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