blib/lib/POE/Filter/Ls.pm

filter: Statementstmt 31.2% 5 / 16 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 25.0% 1 / 4 Podpod 0.0% 0 / 3 totaltotal 20.0% 6 / 30 CC 3 SCAR 15.0
CC
3
Cov
24%
new
6.0
get
6.0
put
2.0
CRAP 4.5
↑ Summary
1 package POE::Filter::Ls;
2  
3 1 ▶use POE::Filter::Line;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 $VERSION = 0.01;
6  
7 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
8 0 my $class = shift;
9  
10 0 ▶ return bless [ new POE::Filter::Line( Literal => "\015\012" ) ],
Condition0%0/3
ref $class || $class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
11 ref($class)||$class;
12 }
13  
14 0 ▶sub put {
Subroutine put: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my ($self, $lines) = @_;
16 0 return $self->[0]->put($lines);
17 }
18  
19 0 ▶sub get {
Subroutine get: not called CC=2 SCAR=17.9
Pod undocumented
20 0 my ($self, $lines) = @_;
21
22 return [ map {
23 0 my %info;
24 0 ▶ if (/^(.|-)(.{9})\s+(\d+)\s+(\w+)\s+(\w+)\s+(\d+)\s+(\w{3}\s+\d+\s+\d+:\d+)\s+(.*?)(?:\s+->\s+(.*))?$/) {
Branch: 1 branch
BranchTrueFalseTotal
if (/^(.|-)(.{9})\s+(\d+)\s+(\w+)\s+(\w+)\s+(\d+)\s+(\w{3}\s+\d+\s+\d+:\d+)\s+(.*?)(?:\s+->\s+(.*))?$/) 0 0 0
25 0 @info{"type","perms","links","owner","group","size","date","filename","link"} = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
26 }
27 0 \%info;
28 0 } @{ $self->[0]->get($lines) } ];
29 }
30  
31 1 1;
32  
33 __END__
↑ Summary