transforms

package
v1.14.0-beta7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntRegexTransform

func IntRegexTransform(regexp *regexp.Regexp) func(body []byte) (int, error)

IntRegexTransform returns a function that can be used to transform a byte array (e.g., an http.Response body) into an int by applying a regular expression to the byte array. The regular expression must have exactly one capture group. The function will return the integer value of the capture group.

func WithDecompressorTransform

func WithDecompressorTransform() func(b []byte) string

WithDecompressorTransform returns a Gomega Transform that decompresses a slice of bytes and returns the corresponding string

func WithHeaderValues

func WithHeaderValues(header string) func(response *http.Response) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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