test

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareJSONBytes

func CompareJSONBytes(a, b []byte)

CompareJSONBytes take two arrays of byte, marshal then to a json struct and then compare if they are equal.

func Load

func Load(name string) []byte

Load is used by tests to load mocks. It used the runtime.Caller to get the request file directory and load all the files from a testdata folder at the same level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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