ddn.data.xml.testing.cli
Package-private: helpers for invoking xmllint / xmlcatalog in tests.
This module is intended for use by unittests within ddn.data.xml.
struct CliResult
Types 1
structCliResult
Result of running a CLI tool.
Fields
int exitCodeExit status code returned by the process.string stdoutCaptured standard output.string stderrCaptured standard error.Functions 13
fn
CliResult runXmllint(const string[] args, const string input = "")Runs `xmllint` and returns its exit code and captured output.fn
CliResult runXmllintBytes(const string[] args, const(ubyte)[] input)Runs `xmllint` with binary standard input.fn
string xmllintC14n(string xml)Runs `xmllint --c14n` on an XML document provided via standard input.fn
string xmllintC14n11(string xml)Runs `xmllint --c14n11` on an XML document provided via standard input.fn
string xmllintC14nWithComments(string xml)Runs `xmllint --c14n --with-comments` on an XML document provided via standard input.