macro_rules! assert_fragments {
($fragments:expr, [ $($matcher:expr),* $(,)? ]) => { ... };
}Expand description
Assert that a fragment list matches the expected pattern.
Each matcher is one of:
raw("text")— Raw fragment with exact valuesignal("name")— Escaped signalsignal("name", raw)— Raw (unescaped) signalattr("name", value: "v")— Simple dynamic attributeattr("name", template: "id")— Template attributeattr("name", complex: "v")— Complex (:-prefixed) attributebool_attr("name", "signal")— Boolean attribute with identifier conditionattr_raw("name", "v")— Static attribute with rawValueattr_raw("name", "v", attr_start)— Static rawValue with attrStartattr_skip("name", "v")— Skipped attributecomponent("id")— Component fragmentfor_loop("item", "collection", "template")— For loopif_cond("template")— If condition