Documentation
¶
Overview ¶
Package markuptest stands in for the AsciiDoc converter in tests: a recorded converter answers each body it has a recording for, so the mapping is tested without node.
Index ¶
Constants ¶
const RecordingsDir = "testdata"
RecordingsDir is the repository directory of recorded converter answers: each `<name>.adoc` body beside the `<name>.json` the pinned Asciidoctor.js converter writes for it, relative to this package's parent.
Variables ¶
This section is empty.
Functions ¶
func RecordedConverter ¶
RecordedConverter writes an executable into dir that answers a body on stdin with the recording made for it under recordings (`*.adoc` bodies beside `*.json` answers), and fails naming the body when none matches. Trailing whitespace on each line and trailing line breaks do not take part in the match. The executable is a shell script, so it reports an error on hosts without `sh`.
Types ¶
This section is empty.