test

package
v0.0.0-...-0d5da2a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAuthors

func SetAuthors(tb *TestBackend, authors []string)

func SetExpectations

func SetExpectations(tb *TestBackend, t *testing.T, title string, expected []transformers.WorkData)

Types

type TestBackend

type TestBackend struct {
	Expected  []transformers.WorkData
	Authors   []string
	WordCount int
	// contains filtered or unexported fields
}

func NewTestBackend

func NewTestBackend(w io.WriteCloser) *TestBackend

func (*TestBackend) AddAuthor

func (b *TestBackend) AddAuthor(author string)

func (*TestBackend) Close

func (b *TestBackend) Close()

func (*TestBackend) EmitFootnote

func (b *TestBackend) EmitFootnote(note string)

func (*TestBackend) EmitPunctuation

func (b *TestBackend) EmitPunctuation(p string)

func (*TestBackend) EmitWord

func (b *TestBackend) EmitWord(w string)

func (*TestBackend) EndBlockQuote

func (b *TestBackend) EndBlockQuote()

func (*TestBackend) EndBold

func (b *TestBackend) EndBold()

func (*TestBackend) EndItalic

func (b *TestBackend) EndItalic()

func (*TestBackend) EndParagraph

func (b *TestBackend) EndParagraph()

func (*TestBackend) NewChapter

func (b *TestBackend) NewChapter(title string)

func (*TestBackend) NewLine

func (b *TestBackend) NewLine()

func (*TestBackend) SetTitle

func (b *TestBackend) SetTitle(title string)

func (*TestBackend) StartBlockQuote

func (b *TestBackend) StartBlockQuote()

func (*TestBackend) StartBold

func (b *TestBackend) StartBold()

func (*TestBackend) StartItalic

func (b *TestBackend) StartItalic()

func (*TestBackend) StartParagraph

func (b *TestBackend) StartParagraph()

Jump to

Keyboard shortcuts

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