This is an archive of the discontinued Mercurial Phabricator instance.

match: add tests for visitdir functionality
ClosedPublic

Authored by spectral on Aug 6 2018, 2:50 PM.

Details

Summary

There are a few cases that we could have done better with some additional logic;
I tried to annotate these when I noticed them, but may have missed some. The
tests are not exhaustive; there are certainly some patterns that I didn't test
well, and many that I didn't test at all.

The primary motivation was to get coverage on visitdir so that I can cover
identical cases in a similar method I'm working on, to make sure that this new
method behaves the same (or better).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

spectral created this revision.Aug 6 2018, 2:50 PM
spectral planned changes to this revision.Aug 6 2018, 3:56 PM

Need to fix some lint errors

spectral updated this revision to Diff 10015.Aug 6 2018, 5:17 PM
yuja added a subscriber: yuja.Aug 8 2018, 11:16 AM

Nice. Queued, thanks.

This revision was automatically updated to reflect the committed changes.