PICA/Writer/Plus.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 4 totaltotal 80.6% 25 / 31 CC 2 SCAR 2.3
CC
2
Cov
95%
write_start_field
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« PICA/Parser/JSON.pm ↑ Summary PICA/Parser/Binary.pm »
1 package PICA::Writer::Plus;
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 1 ▶sub SUBFIELD_INDICATOR {"\N{INFORMATION SEPARATOR ONE}"}
Subroutine SUBFIELD_INDICATOR: called CC=1 SCAR=0.0
Pod undocumented
11 1 ▶sub END_OF_FIELD {"\N{INFORMATION SEPARATOR TWO}"}
Subroutine END_OF_FIELD: called CC=1 SCAR=0.0
Pod undocumented
12 1 ▶sub END_OF_RECORD {"\N{LINE FEED}";}
Subroutine END_OF_RECORD: called CC=1 SCAR=0.0
Pod undocumented
13  
14 2 ▶sub write_start_field {
Subroutine write_start_field: called CC=2 SCAR=7.0
Pod undocumented
15 2 my ($self, $field) = @_;
16  
17 2 $self->write_identifier($field);
18 2 my $annotation = $self->annotation($field);
19 2 ▶ $self->{fh}->print("$annotation" || " ");
Condition50%1/2
"$annotation" || ' '
l!l
02
MC/DC0%0/1
"$annotation" || ' '
"$annotation"
Truth table50%1/2
A
A= "$annotation"
Aresult
11
00
20 }
21  
22 16 1;
23 __END__
« PICA/Parser/JSON.pm ↑ Summary PICA/Parser/Binary.pm »