)]}'
{
  "commit": "7fd820da93d8b914f4a3686595433dfaea7c0ec8",
  "tree": "b17e22b19d87ab3e1d9d763c7090c81adf3da74b",
  "parents": [
    "9bf69a88002d96855abf0a27ff09ca28ce087332"
  ],
  "author": {
    "name": "Nate Bosch",
    "email": "nbosch@google.com",
    "time": "Wed Oct 14 02:02:36 2026 +0000"
  },
  "committer": {
    "name": "Nate Bosch",
    "email": "nbosch@google.com",
    "time": "Wed Oct 14 02:02:36 2026 +0000"
  },
  "message": "[checks] Collapse clauses for described conditions\n\n`IterableChecks.any`, `IterableChecks.every`, `MapChecks.containsKeyThat`,\nand `MapChecks.containsValueThat` embed the description of a condition.\nThey collapse to a single line at the root, through a predicate noun such as\n`an iterable containing a value that is greater than \u003c7\u003e`, but their clause\nalways used the multi-line form of a label followed by the indented\ndescription. Where the clause itself is shown, such as when one of these\nexpectations is nested inside the condition of another, the description\nnever collapsed, while the same check reached through `has` did. Reported in\nhttps://github.com/dart-lang/test/pull/2784#discussion_r4230540680:\n\n    check([[1]]).any(.it()..any(.it()..isGreaterThan(1)));\n\n    Expected: a List\u003cList\u003cint\u003e\u003e that:\n      contains a value that:\n        contains a value that:\n          is greater than \u003c1\u003e\n\nAdd an internal `describedClause` helper next to `describedPredicateNoun`.\nIt joins the label to the description of the condition on a single line when\nthe condition describes in a single line and the result fits within 80\ncolumns, and otherwise keeps the label followed by the indented description.\nBoth helpers share the logic for joining and the length limit. Use it for\nthe clauses of all four expectations. The inner `any` above now describes\nitself as a single line, so the outer `any` collapses to a single\n`Expected:` line at the root:\n\n    an iterable containing a value that contains a value that is\n    greater than \u003c1\u003e\n\nJoining the label of `every`, `only has values that`, to a description such\nas `is less than \u003c10\u003e` reads as `only has values that is less than \u003c10\u003e`.\nDescribe the condition as `every element` instead, which reads as\n`every element is less than \u003c10\u003e` on one line, and `every element:` followed\nby the description otherwise. Change the predicate noun to match:\n`an iterable where every element is less than \u003c10\u003e`.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "02986502fe808b69dfd604b270dad5cdc3865ebc",
      "old_mode": 33188,
      "old_path": "pkgs/checks/CHANGELOG.md",
      "new_id": "72c5d3e0b6411117d056e18234ee205ef13deb5b",
      "new_mode": 33188,
      "new_path": "pkgs/checks/CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "4e17fd6cea010cc8a0b5b5ae0de1d69f9c05428b",
      "old_mode": 33188,
      "old_path": "pkgs/checks/example/iterable/iterable/every.dart",
      "new_id": "d7ec269f8a3096084cba32406d4a45598d7e89e9",
      "new_mode": 33188,
      "new_path": "pkgs/checks/example/iterable/iterable/every.dart"
    },
    {
      "type": "modify",
      "old_id": "21ad59eb012c7c685cd0df5004f1f060bc85dc95",
      "old_mode": 33188,
      "old_path": "pkgs/checks/lib/src/describe.dart",
      "new_id": "a86f1a273a9f5608cf241a50ff6b04576b77797c",
      "new_mode": 33188,
      "new_path": "pkgs/checks/lib/src/describe.dart"
    },
    {
      "type": "modify",
      "old_id": "a8390072b28c4cfdd736d792e75fa83fde18b29c",
      "old_mode": 33188,
      "old_path": "pkgs/checks/lib/src/extensions/iterable.dart",
      "new_id": "8a4e7a101342dc8785bb4adf66d39ed07b2e89e8",
      "new_mode": 33188,
      "new_path": "pkgs/checks/lib/src/extensions/iterable.dart"
    },
    {
      "type": "modify",
      "old_id": "10fae780aebe3c2fbc212d01d5e3a9262c1e68d7",
      "old_mode": 33188,
      "old_path": "pkgs/checks/lib/src/extensions/map.dart",
      "new_id": "db9f4141e85d610db16774552c09dbf22dba5a50",
      "new_mode": 33188,
      "new_path": "pkgs/checks/lib/src/extensions/map.dart"
    },
    {
      "type": "modify",
      "old_id": "19c44514604be8458b845bf3c9b5759e63d7d23f",
      "old_mode": 33188,
      "old_path": "pkgs/checks/test/collapsed_failure_message_test.dart",
      "new_id": "91cd03fda00a9dc671d2a12951b18dc0474aea7c",
      "new_mode": 33188,
      "new_path": "pkgs/checks/test/collapsed_failure_message_test.dart"
    }
  ]
}
