Back to godoc.org

Package test

v1.18.0
Latest Go to latest
Published: Jul 15, 2020 | License: Apache-2.0 | Module: github.com/aws/aws-lambda-go

Index

Package Files

func AssertJsonBytes

func AssertJsonBytes(t *testing.T, inputJSON []byte, o interface{})

func AssertJsonFile

func AssertJsonFile(t *testing.T, file string, o interface{})

func AssertJsonsEqual

func AssertJsonsEqual(t *testing.T, expectedJson []byte, actualJson []byte)

AssertJsonsEqual asserts two JSON files are semantically equal (ignores white-space and attribute order)

func GetMalformedJson

func GetMalformedJson() []byte

func ReadJSONFromFile

func ReadJSONFromFile(t *testing.T, inputFile string) []byte

ReadJSONFromFile reads a given input file to JSON

func TestMalformedJson

func TestMalformedJson(t *testing.T, objectToDeserialize interface{})
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier