testhelper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectConsistentJSONMarshalling

func ExpectConsistentJSONMarshalling(input string, target interface{})

ExpectConsistentJSONMarshalling unmarshalls the given input JSON into target, encodes target back into JSON, then checks whether the input and output jsons are the same

func ExpectGoStructToHaveSchema

func ExpectGoStructToHaveSchema(source string, expectedSchema schema.Schema, fs ...func(schema2 schema.Schema))

Types

type CustomStruct

type CustomStruct struct{}

Jump to

Keyboard shortcuts

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