matcher

package
v1.0.441 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 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 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