lib/App/MadEye/Plugin/Base.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 90.9% 30 / 33 CC 2 SCAR 2.4
CC
2
Cov
92%
new
2.0
__ANON__
1.1
BEGIN
1.0
CRAP 1.3
« script/madeye.pl ↑ Summary
1 package App::MadEye::Plugin::Base;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use base qw/Class::Component::Plugin/;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use App::MadEye::Util qw/get_schema_from_pod/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Kwalify ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod documented
9 2 my $class = shift;
10 2 my $self = $class->SUPER::new(@_);
11  
12 2 ▶ if (my $schema = get_schema_from_pod($self)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $schema = get_schema_from_pod($self)) 2 0 2
13 0 ▶ local $SIG{__DIE__} = sub { die "$self: @_" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
14 2 Kwalify::validate($schema, $self->config->{config});
15 }
16  
17 2 $self;
18 }
19  
20 2 1;
21  
« script/madeye.pl ↑ Summary