blib/lib/App/Project/Doctor/Check/Role.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/App/Project/Doctor/Check/Base.pm ↑ Summary
1 package App::Project::Doctor::Check::Role;
2  
3 # ---------------------------------------------------------------------------
4 # Backward-compatibility shim.
5 #
6 # This file used to define a Moose-style role interface for check plugins.
7 # The role model was replaced with a simpler traditional OO base class
8 # (App::Project::Doctor::Check::Base). This shim is kept so that any
9 # external code that loaded Check::Role by name continues to work.
10 # ---------------------------------------------------------------------------
11  
12 # Enforce strict variable scoping to catch typos at compile time.
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 # Emit runtime warnings for common mistakes (undef in string, etc.).
15 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 # Make all built-in I/O functions throw exceptions instead of returning errors.
17 2 ▶use autodie qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 # Inherit everything from Check::Base. The -norequire flag tells 'parent'
20 # NOT to automatically 'require' Check::Base; we do that ourselves in Doctor.pm
21 # before calling ->new on any check plugin.
22 2 ▶use parent -norequire, 'App::Project::Doctor::Check::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 # Module version used by CPAN and 'use Module 0.02' guards.
25 2 our $VERSION = '0.02';
26  
27 # Return true so Perl knows this file loaded without errors.
28 2 1;
29  
30 __END__
« blib/lib/App/Project/Doctor/Check/Base.pm ↑ Summary