assert

package
v0.0.0-...-dcaea88 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountExpectedString

func CountExpectedString(str string, expectedOccurrenceNum int, successMsg, failureMsg string) common.CheckFunc

func DurationInRange

func DurationInRange(minDuration, maxDuration time.Duration) curl.HTTPResponseCheckFunc

func OutputContains

func OutputContains(str string, successMsg, failureMsg string) common.CheckFunc

func OutputContainsAny

func OutputContainsAny(str []string, successMsg, failureMsg string) common.CheckFunc

func OutputDoesNotContain

func OutputDoesNotContain(str string, successMsg, failureMsg string) common.CheckFunc

func RequestFails

func RequestFails(successMsg, failureMsg string) curl.HTTPResponseCheckFunc

func RequestFailsWithAnyErrorMessages

func RequestFailsWithAnyErrorMessages(expectedErrorMessages []string, successMsg string, failureMsg string) curl.HTTPResponseCheckFunc

func RequestFailsWithErrorMessage

func RequestFailsWithErrorMessage(expectedErrorMessage, successMsg, failureMsg string) curl.HTTPResponseCheckFunc

func RequestSucceeds

func RequestSucceeds(successMsg, failureMsg string) curl.HTTPResponseCheckFunc

func ResponseContains

func ResponseContains(str string) curl.HTTPResponseCheckFunc

func ResponseDoesNotContain

func ResponseDoesNotContain(str string) curl.HTTPResponseCheckFunc

func ResponseMatchesFile

func ResponseMatchesFile(file string, successMsg, failureMsg string, otherFiles ...string) curl.HTTPResponseCheckFunc

func ResponseStatus

func ResponseStatus(expectedStatus int) curl.HTTPResponseCheckFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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