testutil

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDocument

func MakeDocument(jsonDoc string) document.Document

MakeDocument creates a document from a json string.

func MakeValue

func MakeValue(t testing.TB, v interface{}) *document.Value

MakeValue turns v into a document.Value.

Types

type Docs

type Docs []document.Document

func MakeDocuments

func MakeDocuments(jsonDocs ...string) (docs Docs)

MakeDocuments creates a slice of document from json strings.

func (Docs) RequireEqual

func (docs Docs) RequireEqual(t testing.TB, others Docs)

Jump to

Keyboard shortcuts

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