PRANG/Cookbook/Book.pm

filter: Statementstmt 95.0% 19 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 88.4% 23 / 26 CC 1 SCAR 1.8
CC
1
Cov
95%
root_element
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« PRANG/Cookbook/Library.pm ↑ Summary PRANG/Cookbook/Note.pm »
1  
2 package PRANG::Cookbook::Book;
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use MooseX::Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use PRANG::XMLSchema::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # attributes
10 1 has_attr 'isbn' =>
11 is => 'rw',
12 isa => 'Str',
13 ;
14  
15 # elements
16 1 has_element 'title' =>
17 xml_nodeName => 'title',
18 is => 'rw',
19 isa => 'Str',
20 xml_required => 1,
21 required => 1,
22 ;
23  
24 1 has_element 'author' =>
25 xml_nodeName => 'author',
26 is => 'rw',
27 isa => 'ArrayRef[Str]',
28 xml_required => 1,
29 required => 1,
30 ;
31  
32 1 has_element 'pages' =>
33 xml_nodeName => 'pages',
34 is => 'rw',
35 isa => 'Int',
36 xml_required => 1,
37 required => 1,
38 ;
39  
40 1 has_element 'published' =>
41 xml_nodeName => 'published',
42 is => 'rw',
43 isa => 'PRANG::Cookbook::Date',
44 xml_required => 0,
45 ;
46  
47 0 ▶sub root_element { 'book' }
Subroutine root_element: not called CC=1 SCAR=6.9
Pod undocumented
48 1 with 'PRANG::Cookbook';
49  
50 1 1;
« PRANG/Cookbook/Library.pm ↑ Summary PRANG/Cookbook/Note.pm »