Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Differences CPAN distribution.

Report information
The Basics
Id: 39435
Status: resolved
Priority: 0/
Queue: Test-Differences

People
Owner: Nobody in particular
Requestors: thaljef [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Feature Request: Add hooks for a subclass to provide an alternative diff rendering module
Hi there- At work, we love eq_or_diff(). We use it to compare blobs of text, particularly XML. Unfortunately, the lines of text can be rather long, which makes it hard to identify exactly where the difference is, especially when the lines are displayed side-by-side, as Text::Diff::Table does it. I was looking at Text::WordDiff::ANSIColor, and I was thinking about enhancing eq_or_diff() to colorize words that have been added/removed/changed in each line. Would you consider adding a hook to Test::Differences so that I could supply my own module for rendering the diff? Or can you suggest a better approach?
Subject: Re: [rt.cpan.org #39435] Feature Request: Add hooks for a subclass to provide an alternative diff rendering module
Date: Sat, 20 Sep 2008 10:12:45 -0400
To: bug-Test-Differences [...] rt.cpan.org
From: Barrie Slaymaker <barries [...] slaysys.com>
Adding a hook would be fine as long as it doesn't a significant negative impact when not used. Care to put a patch for the hook on this ticket? I could also see having this as an optional output format in the standard distribution based on an environment variable. - Barrie On 9/19/2008 9:55 PM, Jeffrey Ryan Thalhammer via RT wrote: Show quoted text
> Fri Sep 19 21:55:50 2008: Request 39435 was acted upon. > Transaction: Ticket created by THALJEF > Queue: Test-Differences > Subject: Feature Request: Add hooks for a subclass to provide an > alternative diff rendering module > Broken in: (no value) > Severity: Wishlist > Owner: Nobody > Requestors: thaljef@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39435 > > > > Hi there- > > At work, we love eq_or_diff(). We use it to compare blobs of text, > particularly XML. Unfortunately, the lines of text can be rather long, > which makes it hard to identify exactly where the difference is, > especially when the lines are displayed side-by-side, as > Text::Diff::Table does it. > > I was looking at Text::WordDiff::ANSIColor, and I was thinking about > enhancing eq_or_diff() to colorize words that have been > added/removed/changed in each line. > > Would you consider adding a hook to Test::Differences so that I could > supply my own module for rendering the diff? Or can you suggest a > better approach? >
I believe this was resolved a while ago in 0.49_02 back in 2008. Sorry it's taken so long to close this ticket. Cheers, Ovid