DirWatch/New.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 21 / 21 CC 2 SCAR 4.1
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« DirWatch/Modified.pm ↑ Summary DirWatch/Role/Signatures.pm »
1 package POE::Component::DirWatch::New;
2  
3 2 ▶use POE;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = "0.300004";
7  
8 2 extends 'POE::Component::DirWatch';
9 2 with 'POE::Component::DirWatch::Role::Signatures';
10  
11 #--------#---------#---------#---------#---------#---------#---------#---------
12  
13 4 ▶around _file_callback => sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
14 4 my $orig = shift;
15 4 my ($self, $file) = @_[OBJECT, ARG0];
16 4 ▶ return if exists $self->signatures->{"$file"};
Branch: 1 branch
BranchTrueFalseTotal
if exists $self->signatures->{"$file"} 2 2 4
17 2 $orig->(@_);
18 2 };
19  
20 2 __PACKAGE__->meta->make_immutable;
21  
22 2 1;
23  
24 __END__;
« DirWatch/Modified.pm ↑ Summary DirWatch/Role/Signatures.pm »