Commit bc4b541
fix(pact_matching): Fix 3 failing pact_verifier tests under V2 engine
- process_array: use !matchers.cascaded so cascaded MinType rules
degrade to type-check only (fixes verifying_a_pact_with_min_type_matcher_and_child_arrays)
- Add execute_match_values for match:values action — type-check only,
allowing extra keys (fixes verify_pact_with_match_values_matcher)
- execute_match: push VALUE(STRING) not ERROR so body type error
message survives through the error template (fixes verify_multiple_pacts pact-one)
- setup_header_plan: add else error branch to per-header if node so
missing headers produce HeaderMismatch not silence (fixes pact-two)
- header_mismatches: remove stale BodyMismatch block; fix body/header
ordering in into_mismatches
- Update header_tests and walk_tree_tests to reflect correct new behavior
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 29302a8 commit bc4b541
5 files changed
Lines changed: 209 additions & 58 deletions
File tree
- rust/pact_matching/src/engine
- bodies
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| |||
931 | 933 | | |
932 | 934 | | |
933 | 935 | | |
934 | | - | |
| 936 | + | |
935 | 937 | | |
936 | 938 | | |
937 | 939 | | |
| |||
1331 | 1333 | | |
1332 | 1334 | | |
1333 | 1335 | | |
1334 | | - | |
| 1336 | + | |
1335 | 1337 | | |
1336 | 1338 | | |
1337 | | - | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1338 | 1343 | | |
1339 | 1344 | | |
1340 | 1345 | | |
| |||
1375 | 1380 | | |
1376 | 1381 | | |
1377 | 1382 | | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1378 | 1414 | | |
1379 | 1415 | | |
1380 | 1416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1478 | 1478 | | |
1479 | 1479 | | |
1480 | 1480 | | |
| 1481 | + | |
| 1482 | + | |
1481 | 1483 | | |
1482 | 1484 | | |
1483 | 1485 | | |
1484 | 1486 | | |
1485 | | - | |
1486 | | - | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
| |||
1580 | 1580 | | |
1581 | 1581 | | |
1582 | 1582 | | |
1583 | | - | |
| 1583 | + | |
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
| |||
1605 | 1605 | | |
1606 | 1606 | | |
1607 | 1607 | | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | 1608 | | |
1621 | 1609 | | |
1622 | 1610 | | |
| |||
2017 | 2005 | | |
2018 | 2006 | | |
2019 | 2007 | | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
2020 | 2015 | | |
2021 | 2016 | | |
2022 | 2017 | | |
| |||
0 commit comments