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 2
fn
string generateWellFormed(uint seed, XmlGenOptions options = XmlGenOptions.init) @safeGenerates a small well-formed XML document.