jsonpath

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: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(expression string, expected interface{}, data io.Reader) error

func Equal

func Equal(expression string, expected interface{}, data io.Reader) error

func GreaterThan

func GreaterThan(expression string, minimumLength int, data io.Reader) error

func IncludesElement

func IncludesElement(list interface{}, element interface{}) (ok, found bool)

courtesy of github.com/stretchr/testify

func JsonPath

func JsonPath(reader io.Reader, expression string) (interface{}, error)

func Length

func Length(expression string, expectedLength int, data io.Reader) error

func LessThan

func LessThan(expression string, maximumLength int, data io.Reader) error

func NotEqual

func NotEqual(expression string, expected interface{}, data io.Reader) error

func NotPresent

func NotPresent(expression string, data io.Reader) error

func ObjectsAreEqual

func ObjectsAreEqual(expected, actual interface{}) bool

func Present

func Present(expression string, data io.Reader) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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