Documentation
¶
Index ¶
- func SetAuthors(tb *TestBackend, authors []string)
- func SetExpectations(tb *TestBackend, t *testing.T, title string, expected []transformers.WorkData)
- type TestBackend
- func (b *TestBackend) AddAuthor(author string)
- func (b *TestBackend) Close()
- func (b *TestBackend) EmitFootnote(note string)
- func (b *TestBackend) EmitPunctuation(p string)
- func (b *TestBackend) EmitWord(w string)
- func (b *TestBackend) EndBlockQuote()
- func (b *TestBackend) EndBold()
- func (b *TestBackend) EndItalic()
- func (b *TestBackend) EndParagraph()
- func (b *TestBackend) NewChapter(title string)
- func (b *TestBackend) NewLine()
- func (b *TestBackend) SetTitle(title string)
- func (b *TestBackend) StartBlockQuote()
- func (b *TestBackend) StartBold()
- func (b *TestBackend) StartItalic()
- func (b *TestBackend) StartParagraph()
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()
Click to show internal directories.
Click to hide internal directories.