There was an error while loading. Please reload this page.
1 parent cfc5e44 commit d6966d9Copy full SHA for d6966d9
1 file changed
rust/pact_matching/src/engine/bodies/xml.rs
@@ -78,7 +78,12 @@ impl XMLPlanBuilder {
78
) {
79
let children = group_children(element);
80
81
- if !context.config.allow_unexpected_entries {
+ let no_markers = remove_marker(&path);
82
+ let no_indices = drop_indices(&no_markers);
83
+ let matchers = context.select_best_matcher_from(&no_markers, &no_indices)
84
+ .filter(|matcher| matcher.is_type_matcher())
85
+ .remove_duplicates();
86
+ if !context.config.allow_unexpected_entries || !matchers.is_empty() {
87
if element.child_elements().next().is_none() {
88
parent_node.add(
89
ExecutionPlanNode::action("expect:empty")
0 commit comments