matcher

package
v1.0.581 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareJSON

func CompareJSON(actual []byte, expected []byte, jqExpr *string)

func MatchFixture

func MatchFixture(path string, result any, jqFilter string)

func MatchMap added in v1.0.564

func MatchMap(a map[string]string, jq ...string) gcustom.CustomGomegaMatcher

func NormalizeJSON

func NormalizeJSON(jsonStr string) (string, error)

NormalizeJSON returns an indented json string. The keys are sorted lexicographically.

func ParseJQ

func ParseJQ(v []byte, expr string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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