testing

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildValidationRequest

func BuildValidationRequest(object, settings easyjson.Marshaler) ([]byte, error)

BuildValidationRequest creates the payload for the invocation of the `validate` function. * `object`: instance of the object. Must be serializable to JSON using easyjson * `settings`: instance of policy settings. Must be serializable to JSON using easyjson

func BuildValidationRequestFromFixture added in v0.2.0

func BuildValidationRequestFromFixture(req_fixture string, settings easyjson.Marshaler) ([]byte, error)

BuildValidationRequestFromFixture creates the payload for the invocation of the `validate` function. * `req_fixture`: path to the json file with a recorded requst to evaluate * `settings`: instance of policy settings. Must be serializable to JSON using easyjson

Types

This section is empty.

Jump to

Keyboard shortcuts

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