blib/lib/W3C/SOAP/WSDL/Document/Policy.pm

filter: Statementstmt 81.2% 26 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod n/a totaltotal 80.4% 33 / 41 CC 1 SCAR 2.0
CC
1
Cov
81%
_sec_id
2.0
_policy_type
2.0
BEGIN
1.0
CRAP 1.2
« blib/lib/W3C/SOAP/XSD/Document/Type.pm ↑ Summary blib/lib/W3C/SOAP/WSDL/Document/PortType.pm »
1 package W3C::SOAP::WSDL::Document::Policy;
2  
3 # Created on: 2012-07-18 11:11:32
4 # Create by: Ivan Wills
5 # $Id$
6 # $Revision$, $HeadURL$, $Date$
7 # $Revision$, $Source$, $Date$
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Scalar::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use List::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 #use List::MoreUtils;
15 1 ▶use Data::Dumper qw/Dumper/;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use English qw/ -no_match_vars /;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 extends 'W3C::SOAP::Document::Node';
19  
20 1 our $VERSION = 0.13;
21  
22 1 has sec_id => (
23 is => 'rw',
24 isa => 'Str',
25 builder => '_sec_id',
26 );
27 1 has policy_type => (
28 is => 'rw',
29 isa => 'Str',
30 builder => '_policy_type',
31 );
32  
33 sub _sec_id {
34 0 ▶ my ($self) = @_;
Subroutine _sec_id: not called CC=1 SCAR=6.9
35 0 my @attributes = $self->node->getAttributes();
36  
37 0 return;
38 }
39  
40 sub _policy_type {
41 0 ▶ my ($self) = @_;
Subroutine _policy_type: not called CC=1 SCAR=6.9
42 0 my @nodes = $self->document->xpc->findnodes('wsdl:operation', $self->node);
43  
44 0 return;
45 }
46  
47 1 1;
48  
49 __END__
50  
51 =head1 NAME
52  
53 W3C::SOAP::WSDL::Document::Policy - Extracted policy information
54  
55 =head1 VERSION
56  
57 This documentation refers to W3C::SOAP::WSDL::Document::Policy version 0.13.
58  
59  
60 =head1 SYNOPSIS
61  
62 use W3C::SOAP::WSDL::Document::Policy;
63  
64 # Brief but working code example(s) here showing the most common usage(s)
65 # This section will be as far as many users bother reading, so make it as
66 # educational and exemplary as possible.
67  
68  
69 =head1 DESCRIPTION
70  
71 =head1 SUBROUTINES/METHODS
72  
73 =head1 DIAGNOSTICS
74  
75 =head1 CONFIGURATION AND ENVIRONMENT
76  
77 =head1 DEPENDENCIES
78  
79 =head1 INCOMPATIBILITIES
80  
81 =head1 BUGS AND LIMITATIONS
82  
83 There are no known bugs in this module.
84  
85 Please report problems to Ivan Wills (ivan.wills@gmail.com).
86  
87 Patches are welcome.
88  
89 =head1 AUTHOR
90  
91 Ivan Wills - (ivan.wills@gmail.com)
92  
93 =head1 LICENSE AND COPYRIGHT
94  
95 Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
96 All rights reserved.
97  
98 This module is free software; you can redistribute it and/or modify it under
99 the same terms as Perl itself. See L<perlartistic>. This program is
100 distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
101 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
102 PARTICULAR PURPOSE.
103  
104 =cut
« blib/lib/W3C/SOAP/XSD/Document/Type.pm ↑ Summary blib/lib/W3C/SOAP/WSDL/Document/PortType.pm »