document

package
v0.0.0-...-cf9562f Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(d *Document)

Print a document for debugging purposes.

Types

type ActionExpect

type ActionExpect struct {
	Action bytes.Buffer
	Expect bytes.Buffer
}

ActionExpect represents each test within a document.

type ActionExpectCollection

type ActionExpectCollection []*ActionExpect

ActionExpectCollection is a list of tests.

type DocGroup

type DocGroup struct {
	Name string
	Docs Documents
}

DocGroup represents a collection of ordered documents.

type Document

type Document struct {
	// ID is only for internal use (testing). Doesn't actually do anything be help
	// identify documents.
	ID       string
	Priority bytes.Buffer
	Deps     bytes.Buffer
	Group    bytes.Buffer
	Tests    ActionExpectCollection
}

Document represents a file of tests. They are the heart and soul.

type Documents

type Documents []*Document

Documents are a collection of *Documents.

type OrderedGroups

type OrderedGroups []DocGroup

OrderedGroups are a sorted collection of groups.

Jump to

Keyboard shortcuts

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