- Issue created by @alexpott
- Status changed to Needs review
about 1 year ago 10:50am 12 September 2023 - last update
about 1 year ago 29,454 pass, 1 fail - last update
about 1 year ago 29,475 pass - 🇬🇧United Kingdom alexpott 🇪🇺🌍
With this change update_helper tests pass on 10.1.x as they used to on 10.0.*
- 🇮🇹Italy mondrake 🇮🇹
Oh my, another one? Good that we are adding cases to prevent future regression - this test is a near copy of the now-legacy DiffEngineTest, which was missing these cases, so we are net adding coverage here.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
@mondrake ah hah! Now
\Drupal\Tests\Component\Diff\Engine\DiffEngineTest::testDiffInfiniteLoop()
and\Drupal\Tests\Component\Diff\DiffOpOutputBuilderTest::testDiffInfiniteLoop()
match - the fact they got a different number of operations in the array should have warned us something was up with DiffOpOutputBuilder. - last update
about 1 year ago 29,477 pass - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Let's add the new test coverage to the legacy test. This means that if we do change something in DiffEngine (hopefully we will not) then we can be sure we've not broken these new test cases.
It also proves the deprecated DiffEngine and the new DiffOpOutputBuilder generate the same result for these cases.
The last submitted patch, 2: 3386707-2.test-only.patch, failed testing. View results →
- Status changed to RTBC
about 1 year ago 11:56am 12 September 2023 - 🇬🇧United Kingdom longwave UK
I like that this simplifies the sequence builder even further.
+++ b/core/lib/Drupal/Component/Diff/DiffOpOutputBuilder.php @@ -61,12 +61,8 @@ public function toOpsArray(array $diff): array { + $ops[] = $this->hunkOp(self::CHANGED, $hunkSource, $hunkTarget);
Additional space can be fixed on commit.
- last update
about 1 year ago 29,477 pass - 🇬🇧United Kingdom catch
Committed/pushed to 11.x and cherry-picked to 10.1.x, thanks!
- Status changed to Fixed
about 1 year ago 6:33am 14 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.