mocks

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(expression string, expected interface{}) apitest.Matcher

Contains is a convenience function to assert that a jsonpath expression extracts a value in an array

func Equal

func Equal(expression string, expected interface{}) apitest.Matcher

Equal is a convenience function to assert that a jsonpath expression matches the given value

func GreaterThan

func GreaterThan(expression string, minimumLength int) apitest.Matcher

GreaterThan asserts that value is greater than the given length, determined by reflect.Len

func Len

func Len(expression string, expectedLength int) apitest.Matcher

Len asserts that value is the expected length, determined by reflect.Len

func NotEqual

func NotEqual(expression string, expected interface{}) apitest.Matcher

NotEqual is a function to check json path expression value is not equal to given value

Types

This section is empty.

Jump to

Keyboard shortcuts

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