Perl-Critic / PPI

53 stars 44 forks source link

Cmp document functions #146

Open moregan opened 9 years ago

moregan commented 9 years ago

Add t::lib::PPI::Test::CMP, containing the cmp_document family of testing functions, plus conversion of one .t file to use them. This is the last of the material from the old cmp_document branch. When it is merged, the old pull request #49 can be closed.

Changes since this material was last reviewed: added Class::Name => content shorthand, ability to skip children of an element via NODESCEND.

moregan commented 9 years ago

Normally I don't like unconditional exports, but thought this might be a case for them.

wchristian commented 9 years ago

Haven't read everything yet, but for tests unconditional exports are fine. :)