blib/lib/MAB2/Record/gkd.pm

filter: Statementstmt 80.9% 17 / 21 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 64.5% 20 / 31 CC 2 SCAR 11.0
CC
2
Cov
71%
segmentname
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/Tie/MAB2/Dualdb/Recno.pm ↑ Summary blib/lib/MAB2/Record/lokal.pm »
1 package MAB2::Record::gkd;
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 ▶ my $ret = $RDocs->{$rec}[3] || $self->SUPER::segmentname($rec);
Condition0%0/3
$RDocs->{$rec}[3] || $self->SUPER::segmentname($rec)
l!l&&r!l&&!r
000
MC/DC0%0/2
$RDocs->{$rec}[3] || $self->SUPER::segmentname($rec)
$RDocs->{$rec}[3] $self->SUPER::segmentname($rec)
Truth table0%0/3
A || B
A= $RDocs->{$rec}[3]B= $self->SUPER::segmentname($rec)
ABresult
1X1
011
000
23 # warn "ret[$ret]";
24 0 $ret;
25 }
26  
27 2 1;
28  
29 # gkdmab.txt
30 __DATA__
« blib/lib/Tie/MAB2/Dualdb/Recno.pm ↑ Summary blib/lib/MAB2/Record/lokal.pm »