MACRO_LIBRARY

Constant MACRO_LIBRARY 

Source
pub const MACRO_LIBRARY: &str = "{# _macros.toml.tera - Cleanroom v0.7.0 Comprehensive Macro Library\n\n   Complete macro library for advanced test authoring (Issue #7).\n   Import with: {% import \"_macros.toml.tera\" as m %}\n\n   This library includes:\n\n   BASIC MACROS (MVP):\n   1. span() - OTEL span expectations (most used)\n   2. service() - Service definitions (required for every test)\n   3. scenario() - Test scenarios (required for execution)\n\n   ADVANCED MACROS (Issue #7):\n   4. span_exists() - Simple span existence validation\n   5. graph_relationship() - Parent-child span relationships\n   6. temporal_ordering() - Span temporal ordering\n   7. error_propagation() - Error propagation patterns\n   8. service_interaction() - Service-to-service interactions\n   9. attribute_validation() - Attribute key-value validation\n   10. resource_check() - Resource existence validation\n   11. batch_validation() - Batch span validation with conditions\n#}\n\n{# ============================================================================\n   MACRO: span(name, parent=\"\", attrs)\n\n   Generate [[expect.span]] block for OpenTelemetry span validation.\n   This is the MOST CRITICAL macro - 80%+ of templates use span validation.\n\n   Parameters:\n     - name (string): Span name to match\n     - parent (string): Optional parent span name for hierarchy\n     - attrs (object): Optional attribute key-value pairs\n\n   Examples:\n     {{ m::span(\"http.request\") }}\n     {{ m::span(\"db.query\", parent=\"http.request\") }}\n     {{ m::span(\"api.call\", attrs={\"http.method\": \"GET\", \"http.status\": \"200\"}) }}\n     {{ m::span(\"transaction\", parent=\"root\", attrs={\"tx.id\": \"123\"}) }}\n\n   Produces:\n     [[expect.span]]\n     name = \"http.request\"\n\n     [[expect.span]]\n     name = \"db.query\"\n     parent = \"http.request\"\n\n     [[expect.span]]\n     name = \"api.call\"\n     attrs.all = { \"http.method\" = \"GET\", \"http.status\" = \"200\" }\n\n     [[expect.span]]\n     name = \"transaction\"\n     parent = \"root\"\n     attrs.all = { \"tx.id\" = \"123\" }\n============================================================================ #}\n";
Expand description

Macro library content embedded at compile time