blib/lib/MARC/Spec/Field.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 90.9% 20 / 22 SCAR 6.9
CC
2
Cov
94%
BUILDARGS
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/MARC/Spec/Subfield.pm ↑ Summary Build »
1 package MARC::Spec::Field;
2  
3 13 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 extends 'MARC::Spec::Structure';
7  
8 13 our $VERSION = '1.0.0';
9  
10 13 has tag => (
11 is => 'rw',
12 required => 1
13 );
14  
15 13 has indicator1 => (
16 is => 'rw',
17 predicate => 1
18 );
19
20 13 has indicator2 => (
21 is => 'rw',
22 predicate => 1
23 );
24  
25 sub BUILDARGS {
26 42 ▶ my ($class, @args) = @_;
Subroutine BUILDARGS: called CC=2 SCAR=7.0
Pod undocumented
27 42 ▶ if (@args % 2 == 1) { unshift @args, "tag" }
Branch: 1 branch
BranchTrueFalseTotal
if (@args % 2 == 1) 42 0 42
28 42 return { @args };
29 }
30 13 1;
31 __END__
« blib/lib/MARC/Spec/Subfield.pm ↑ Summary Build »