blib/lib/MAB2/Record/lokal.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 74.0% 20 / 27 CC 2 SCAR 11.0
CC
2
Cov
77%
segmentname
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/MAB2/Record/gkd.pm ↑ Summary blib/lib/MAB2/Record/swd.pm »
1 package MAB2::Record::lokal;
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 0 ▶sub segmentname {
Subroutine segmentname: not called CC=2 SCAR=17.9
Pod undocumented
20 0 my $self = shift;
21 0 my $rec = shift;
22 0 ▶ $RDocs->{$rec}[3] || $self->SUPER::segmentname($rec);
Branch: 1 branch
BranchTrueFalseTotal
$RDocs->{$rec}[3] or $self->SUPER::segmentname($rec) 0 0 0
23 }
24  
25 2 1;
26  
27 # lokalmab.txt
28 __DATA__
« blib/lib/MAB2/Record/gkd.pm ↑ Summary blib/lib/MAB2/Record/swd.pm »