Client/Item/Filled.pm

filter: Statementstmt 70.0% 21 / 30 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 83.3% 5 / 6 Podpod 50.0% 1 / 2 totaltotal 67.4% 29 / 43 CC 4 SCAR 11.1
CC
4
Cov
68%
init
5.3
execute
2.0
BEGIN
1.0
CRAP 3.0
« Client/Engine/Component.pm ↑ Summary Client/Item/Return.pm »
1  
2 package VoiceXML::Client::Item::Filled;
3  
4  
5  
6 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use base qw (VoiceXML::Client::Item);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use VoiceXML::Client::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 =head1 COPYRIGHT AND LICENSE
12  
13
14 Copyright (C) 2007,2008 by Pat Deegan.
15 All rights reserved
16 http://voicexml.psychogenic.com
17  
18 This library is released under the terms of the GNU GPL version 3, making it available only for
19 free programs ("free" here being used in the sense of the GPL, see http://www.gnu.org for more details).
20 Anyone wishing to use this library within a proprietary or otherwise non-GPLed program MUST contact psychogenic.com to
21 acquire a distinct license for their application. This approach encourages the use of free software
22 while allowing for proprietary solutions that support further development.
23  
24  
25 This file is part of VoiceXML::Client.
26  
27
28
29 VoiceXML::Client is free software: you can redistribute it and/or modify
30 it under the terms of the GNU General Public License as published by
31 the Free Software Foundation, either version 3 of the License, or
32 (at your option) any later version.
33  
34 VoiceXML::Client is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU General Public License for more details.
38  
39 You should have received a copy of the GNU General Public License
40 along with VoiceXML::Client. If not, see <http://www.gnu.org/licenses/>.
41  
42  
43 =cut
44  
45  
46  
47  
48 3 ▶use vars qw{
Subroutine BEGIN: called CC=1 SCAR=0.0
49 $VERSION
50 3 };
51  
52 3 $VERSION = $VoiceXML::Client::Item::VERSION;
53  
54  
55  
56  
57 1 ▶sub init {
Subroutine init: called CC=4 SCAR=16.8
Pod documented
58 1 my $self = shift;
59
60 1 ▶ my $mode = $self->{'XMLElement'}->attribute('mode') || 'all';
Condition50%1/2
$self->{'XMLElement'}->attribute('mode') || 'all'
l!l
01
MC/DC0%0/1
$self->{'XMLElement'}->attribute('mode') || 'all'
$self->{'XMLElement'}->attribute('mode')
Truth table50%1/2
A
A= $self->{'XMLElement'}->attribute('mode')
Aresult
11
00
61 1 my $namelist = $self->{'XMLElement'}->attribute('namelist');
62  
63
64 1 $self->{'vars'} = [];
65 1 $self->{'mode'} = $mode;
66 1 ▶ if ($namelist)
Branch: 1 branch
BranchTrueFalseTotal
if ($namelist) 0 1 1
67 {
68 0 $self->{'namelist'} = $namelist;
69 0 my @names = split(/\s+/, $namelist);
70 0 foreach my $n (@names)
71 {
72
73 0 push @{$self->{'vars'}}, $n;
74 }
75 }
76
77
78
79 1 return 1;
80
81 }
82  
83 0 ▶sub execute {
Subroutine execute: not called CC=1 SCAR=6.9
Pod undocumented
84 0 my $self = shift;
85 0 my $handle = shift;
86 0 my $optParams = shift;
87
88 ############# DO STUFF ??
89
90 0 return $self->executeChildren($handle, $optParams);
91 }
92 3 1;
« Client/Engine/Component.pm ↑ Summary Client/Item/Return.pm »