GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MooseX::CoverableModifiers(3) User Contributed Perl Documentation MooseX::CoverableModifiers(3)
 

MooseX::CoverableModifiers - Make Moose method modifiers Devel::Cover friendly

  use Moose;
  use MooseX::CoverableModifiers;
  after foo => sub {
     # this sub is now coverable by Devel::Cover
     # it is actually translated into:
     #   after foo => \&after_foo_0; *after_foo_0 = sub {
  };

Method modifiers are handy, but they are not Devel::Cover friendly. This is because Perl makes package-level anonymous subroutines invisible to Devel::Cover, and the modifiers are often anonymous subroutines.
MooseX::CoverableModifiers names the subroutines with Devel::Declare, so they can be seen by Devel::Cover and take parts in you coverage reports.
The module has no effects unless Devel::Cover is loaded.

Some magic tool that uses MooseX::CoverableModifiers for all Moose classes when you run tests, so you don't even have to explicitly use the module.

Chia-liang Kao <clkao@clkao.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2012-02-16 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.