markuptest

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func RecordedConverter(dir, recordings string) (string, error)

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.

Jump to

Keyboard shortcuts

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