PRANG/Cookbook/Library.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 86.3% 19 / 22 CC 1 SCAR 1.8
CC
1
Cov
94%
root_element
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« PRANG/Graph.pm ↑ Summary PRANG/Cookbook/Book.pm »
1  
2 package PRANG::Cookbook::Library;
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 1 has_element 'book' =>
10 xml_nodeName => 'book',
11 is => 'rw',
12 isa => 'ArrayRef[PRANG::Cookbook::Book]',
13 xml_required => 1,
14 required => 1,
15 ;
16  
17 0 ▶sub root_element { 'library' }
Subroutine root_element: not called CC=1 SCAR=6.9
Pod undocumented
18 1 with 'PRANG::Cookbook';
19  
20 1 1;
21  
22 =pod
23  
24 =head1 NAME
25  
26 PRANG::Cookbook::Library - Basic PRANG Features
27  
28 =head1 DESCRIPTION
29  
30 This recipe series gives you a good overview of some of advanced of PRANG's
31 capabilites. Showing how to do lists of nodes and then lists of any of a number
32 of different nodes.
33  
34 =head1 CONCLUSION
35  
36 ...
37  
38 =head1 AUTHOR
39  
40 Andrew Chilton, E<lt>andy@catalyst dot net dot nz<gt>
41  
42 =head1 COPYRIGHT & LICENSE
43  
44 This software development is sponsored and directed by New Zealand Registry
45 Services, http://www.nzrs.net.nz/
46  
47 The work is being carried out by Catalyst IT, http://www.catalyst.net.nz/
48  
49 Copyright (c) 2009, NZ Registry Services. All Rights Reserved. This software
50 may be used under the terms of the Artistic License 2.0. Note that this
51 license is compatible with both the GNU GPL and Artistic licenses. A copy of
52 this license is supplied with the distribution in the file COPYING.txt.
53  
54 =cut
« PRANG/Graph.pm ↑ Summary PRANG/Cookbook/Book.pm »