blib/lib/PICA/Writer/Plus.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 0.0% 0 / 4 totaltotal 50.0% 13 / 26 CC 1 SCAR 4.5
CC
1
Cov
67%
SUBFIELD_INDICATOR
2.0
END_OF_FIELD
2.0
END_OF_RECORD
2.0
CRAP 1.6
« blib/lib/PICA/Writer/JSON.pm ↑ Summary blib/lib/PICA/Writer/Binary.pm »
1 package PICA::Writer::Plus;
2 8 ▶use v5.14.1;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 8 our $VERSION = '1.18';
5  
6 8 ▶use charnames qw(:full);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 8 ▶use parent 'PICA::Writer::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub SUBFIELD_INDICATOR {"\N{INFORMATION SEPARATOR ONE}"}
Subroutine SUBFIELD_INDICATOR: not called CC=1 SCAR=6.9
Pod undocumented
11 0 ▶sub END_OF_FIELD {"\N{INFORMATION SEPARATOR TWO}"}
Subroutine END_OF_FIELD: not called CC=1 SCAR=6.9
Pod undocumented
12 0 ▶sub END_OF_RECORD {"\N{LINE FEED}";}
Subroutine END_OF_RECORD: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 sub write_subfield {
15 0 ▶ my ($self, $code, $value) = @_;
Subroutine write_subfield: not called CC=1 SCAR=6.9
Pod undocumented
16 0 $self->{fh}->print($self->SUBFIELD_INDICATOR . $code . $value);
17 }
18  
19 8 1;
20 __END__
« blib/lib/PICA/Writer/JSON.pm ↑ Summary blib/lib/PICA/Writer/Binary.pm »