helpers

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FailureTemplate = `stuff {{ fail "You have failed" }} otherstuff`

-------------------------------------------------------

constants

-------------------------------------------------------

Variables

This section is empty.

Functions

func ReadDocument

func ReadDocument(t *testing.T, filename string) *meta.Document

func ReadFixture

func ReadFixture(filename string) ([]byte, error)

func WriteResult

func WriteResult(t *testing.T, data []byte)

func WriteResultWithExt

func WriteResultWithExt(t *testing.T, data []byte, postfix string)

Types

type DocumentTest

type DocumentTest struct {
	Meta meta.Meta   `json:"meta"`
	Data TestDocData `json:"data"`
}

type TestDocData

type TestDocData struct {
	Type    string `json:"type"`
	RawData []byte `json:"data"`
}

-------------------------------------------------------

types

-------------------------------------------------------

Jump to

Keyboard shortcuts

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