ddn.data.xml.testing.generators
Package-private: XML generators for randomized tests.
This module is intended for use by unittests within ddn.data.xml.
Types 1
structXmlGenOptions
Options controlling randomized XML generation.
Fields
uint maxDepthMaximum element nesting depth.uint maxChildrenMaximum number of child elements per element.uint maxAttributesMaximum number of attributes per element.uint maxTextLengthMaximum text length for text nodes.Functions 5
private fn
void genElement(ref Random rng, ref typeof(appender!string()) sink, const XmlGenOptions opt, uint depth) @safefn
string generateWellFormed(uint seed, XmlGenOptions options = XmlGenOptions.init) @safeGenerates a small well-formed XML document.