DirWatch/Unmodified.pm

filter: Statementstmt 70.5% 12 / 17 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 51.8% 14 / 27 CC 3 SCAR 20.3
CC
3
Cov
55%
__ANON__
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« DirWatch/Role/AIO.pm ↑ Summary DirWatch.pm »
1 package POE::Component::DirWatch::Unmodified;
2  
3 1 ▶use POE;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = "0.300004";
7  
8 1 extends 'POE::Component::DirWatch';
9 1 with 'POE::Component::DirWatch::Role::Signatures';
10  
11 #--------#---------#---------#---------#---------#---------#---------#---------
12  
13 0 ▶around _file_callback => sub {
Subroutine __ANON__: not called CC=3 SCAR=24.8
14 0 my $orig = shift;
15 0 my ($self, $kernel, $file) = @_[OBJECT, KERNEL, ARG0];
16 0 my $sig = delete $self->signatures->{"$file"};
17 0 ▶ return unless defined $sig && $sig->is_same;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $sig and $sig->is_same 0 0 0
Condition0%0/3
defined $sig and $sig->is_same
!ll&&!rl&&r
000
MC/DC0%0/2
defined $sig and $sig->is_same
defined $sig $sig->is_same
Truth table0%0/3
A and B
A= defined $sigB= $sig->is_same
ABresult
0X0
100
111
18 0 $orig->(@_);
19 1 };
20  
21 1 __PACKAGE__->meta->make_immutable;
22  
23 1 1;
24  
25 __END__;
« DirWatch/Role/AIO.pm ↑ Summary DirWatch.pm »