PICA/Writer/Generic.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 41.9% 13 / 31 CC 4 SCAR 14.7
CC
4
Cov
45%
SUBFIELD_INDICATOR
6.0
END_OF_FIELD
6.0
END_OF_RECORD
6.0
CRAP 4.3
« PICA/Parser/Plus.pm ↑ Summary PICA/Writer/Plain.pm »
1 package PICA::Writer::Generic;
2 16 ▶use v5.14.1;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 16 our $VERSION = '2.12';
5  
6 16 ▶use charnames qw(:full);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 16 ▶use parent 'PICA::Writer::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub SUBFIELD_INDICATOR {
Subroutine SUBFIELD_INDICATOR: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my $self = shift;
12 return
13 0 ▶ exists $self->{us} ? "$self->{us}" : "\N{INFORMATION SEPARATOR ONE}";
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{'us'} ? : 0 0 0
14 }
15  
16 0 ▶sub END_OF_FIELD {
Subroutine END_OF_FIELD: not called CC=2 SCAR=17.9
Pod undocumented
17 0 my $self = shift;
18 return
19 0 ▶ exists $self->{rs} ? "$self->{rs}" : "\N{INFORMATION SEPARATOR TWO}";
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{'rs'} ? : 0 0 0
20 }
21  
22 0 ▶sub END_OF_RECORD {
Subroutine END_OF_RECORD: not called CC=2 SCAR=17.9
Pod undocumented
23 0 my $self = shift;
24 return
25 exists $self->{gs}
26 0 ▶ ? "$self->{gs}"
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{'gs'} ? : 0 0 0
27 : "\N{INFORMATION SEPARATOR THREE}";
28 }
29  
30 16 1;
31 __END__
« PICA/Parser/Plus.pm ↑ Summary PICA/Writer/Plain.pm »