blib/lib/Just/Another/Perl/Hacker.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 90.9% 30 / 33 CC 2 SCAR 2.5
CC
2
Cov
96%
Just
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 #
2 # $Id: Hacker.pm,v 0.1 2006/03/25 12:20:27 dankogai Exp dankogai $
3 #
4 package Poem;
5 1 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 our $VERSION = sprintf "%d.%02d", q$Revision: 0.1 $ =~ /(\d+)/g;
9  
10 package Another;
11 6 ▶sub Just{
Subroutine Just: called CC=2 SCAR=7.0
12 6 my $another = shift;
13 6 my $perl_hacker = shift;
14 6 ▶ my $just = (caller(1))[3] || (caller(0))[3];
Condition66%2/3
(caller 1)[3] || (caller 0)[3]
l!l&&r!l&&!r
330
MC/DC0%0/2
(caller 1)[3] || (caller 0)[3]
(caller 1)[3] (caller 0)[3]
Truth table66%2/3
A || B
A= (caller 1)[3]B= (caller 0)[3]
ABresult
1X1
011
000
15 # warn $just;
16 6 $just =~ s/.*:://o;
17 6 "$just $another $perl_hacker";
18 }
19 3 ▶sub Yet { Just(@_) }
Subroutine Yet: called CC=1 SCAR=0.0
20  
21 package Hacker;
22 6 ▶sub Perl{
Subroutine Perl: called CC=1 SCAR=0.0
23 6 my $hacker = shift;
24 6 my $perl = (caller(0))[3];
25 6 $perl =~ s/.*:://o;
26 6 "$perl $hacker";
27 }
28 1 *Porter::Perl = \&Hacker::Perl;
29 1 *Poet::Perl = \&Hacker::Perl;
30  
31 1 1;
32 __END__
↑ Summary