blib/lib/MAB2/Record/titel.pm

filter: Statementstmt 100% 20 / 20 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 92.5% 25 / 27 CC 2 SCAR 3.5
CC
2
Cov
95%
segmentname
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/MAB2/Record/uptodate.pl ↑ Summary blib/lib/MAB2/Record/pnd.pm »
1 package MAB2::Record::titel;
2 2 our $VERSION = '0.01';
3 2 ▶use base qw(MAB2::Record::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use overload '""' => "as_string";
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 my $KDocs;
9 my $RDocs;
10  
11 {
12 2 local $/;
13 2 my $strdocs = <DATA>;
14 2 close DATA;
15 2 ($KDocs, $RDocs) = __PACKAGE__->parsedoc($strdocs);
16 }
17  
18 # cannot inherit, $RDocs is different here
19 2 ▶sub segmentname {
Subroutine segmentname: called CC=2 SCAR=7.1
Pod undocumented
20 2 my $self = shift;
21 2 my $rec = shift;
22 2 ▶ $RDocs->{$rec}[3] || $self->SUPER::segmentname($rec);
Branch: 1 branch
BranchTrueFalseTotal
$RDocs->{$rec}[3] or $self->SUPER::segmentname($rec) 2 0 2
23 }
24  
25 2 1;
26  
27 # titelmab.txt
28 __DATA__
« blib/lib/MAB2/Record/uptodate.pl ↑ Summary blib/lib/MAB2/Record/pnd.pm »