script/pod2axpoint

filter: Statementstmt 100% 10 / 10 Branchbran 50.0% 1 / 2 Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 93.7% 15 / 16 CC 1 SCAR 0.0
CC
1
Cov
93%
BEGIN
1.0
CRAP 1.0
« lib/Pod/AxPoint.pm ↑ Summary
1 #!/usr/local/bin/perl
2 package Pod::AxPoint::Script;
3  
4 2 $Pod::AxPoint::Script::VERSION = 0.04;
5  
6 2 ▶use Pod::AxPoint;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶my $file = shift || die "Usage $0 <file.pod>\n";
Condition100%2/2
shift @ARGV || die("Usage $0 <file.pod>\n")
l!l
11
MC/DC100%1/1
shift @ARGV || die("Usage $0 <file.pod>\n")
shift @ARGV
Truth table100%2/2
A
A= shift @ARGV
Aresult
11
00
9  
10  
11 1 ▶open POD, "<$file" or die "Could not load $file: $!\n";
Branch: 1 branch
BranchTrueFalseTotal
open POD, "<$file" or die "Could not load ${file}: $!\n" 1 0 1
12 1 my $pod = join "", <POD>;
13 1 close POD;
14  
15 1 my $ax = new Pod::AxPoint;
16 1 print $ax->process($pod);
17  
18 __END__
« lib/Pod/AxPoint.pm ↑ Summary